Use bigint instead of int and also fix get-verify-code endpoint because of a column rename

This commit is contained in:
2026-01-22 17:59:57 -07:00
parent 9e6822fc7a
commit 4337ee1402
3 changed files with 27 additions and 25 deletions

View File

@@ -56,7 +56,7 @@ export async function handler (context: Context) {
.where(
and(
eq(verifyCodes.ip, ip),
eq(verifyCodes.used, false),
eq(verifyCodes.usedTimestamp, 0),
sql`${verifyCodes.timestamp} >= UNIX_TIMESTAMP() - 600`
)
)