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

This commit is contained in:
Lncvrt committed 2026-01-22 18:00:54 -07:00
1 parent 9e6822fc7a
commit 4337ee1402
3 files changed
+27 -25

No files matched your search

+1 -1
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`
)
)