fix: remove debug line in rate limit and old comments

This commit is contained in:
trafficlunar 2025-04-30 18:26:41 +01:00
parent 9a76254317
commit 594309d22d
3 changed files with 0 additions and 4 deletions

View file

@ -36,7 +36,6 @@ export default function ScanTutorialButton() {
return (
<>
{/* todo: maybe make it an icon? */}
<button
type="button"
onClick={() => setIsOpen(true)}

View file

@ -514,8 +514,6 @@ export default class Mii {
data: this.encodeStudio().toString("hex"),
};
// TODO - Assert and error out instead of setting defaults?
params.type = STUDIO_RENDER_TYPES.includes(params.type as string) ? params.type : STUDIO_RENDER_DEFAULTS.type;
params.expression = STUDIO_RENDER_EXPRESSIONS.includes(params.expression as string) ? params.expression : STUDIO_RENDER_DEFAULTS.expression;
params.width = Util.clamp(params.width, 512);

View file

@ -79,7 +79,6 @@ export class RateLimit {
const identifier = (session ? session.user.id : ip) ?? "null";
this.data = await this.check(identifier);
console.log(this.data);
if (!this.data.success) return this.sendResponse({ success: false, error: "Rate limit exceeded. Please try again later." }, 429);
return;