Use bigint instead of int and also fix get-verify-code endpoint because of a column rename
This commit is contained in:
@@ -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