Use bigint instead of int and also fix get-verify-code endpoint because of a column rename
This commit is contained in:
3 files changed
+27
-25
No files matched your search
@@ -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`
|
||||
)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user