fix: remove debug line in rate limit and old comments
This commit is contained in:
parent
9a76254317
commit
594309d22d
3 changed files with 0 additions and 4 deletions
|
|
@ -36,7 +36,6 @@ export default function ScanTutorialButton() {
|
|||
|
||||
return (
|
||||
<>
|
||||
{/* todo: maybe make it an icon? */}
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setIsOpen(true)}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue