diff --git a/src/routes/setUsername.ts b/src/routes/setUsername.ts index aa67fa1..bcea43f 100644 --- a/src/routes/setUsername.ts +++ b/src/routes/setUsername.ts @@ -27,6 +27,8 @@ export async function setUsername(req: Request, res: Response): Promise 0) { return res.sendStatus(200); } + timings.push(Date.now()); + const shadowBanRow = await db.prepare("get", `SELECT count(*) as "userCount" FROM "shadowBannedUsers" WHERE "userID" = ? LIMIT 1`, [userID]); if (adminUserIDInput === undefined && shadowBanRow.userCount > 0) { return res.sendStatus(200); } + + timings.push(Date.now()); } catch (error) /* istanbul ignore next */ { Logger.error(error as string); @@ -72,6 +82,8 @@ export async function setUsername(req: Request, res: Response): Promise