I don't know why I didn't just do this from the start

This commit is contained in:
Lncvrt committed 2026-02-02 20:04:46 -07:00
1 parent 14b6522af8
commit fbf5a46e74
16 files changed
+122 -26

No files matched your search

+3 -1
View File
@@ -62,7 +62,8 @@ export async function handler (context: Context) {
.orderBy(desc(verifyCodes.id))
.limit(1)
.execute()
if (codeExists[0])
if (codeExists[0]) {
connection0.end()
return jsonResponse(
{
success: true,
@@ -71,6 +72,7 @@ export async function handler (context: Context) {
},
200
)
}
await db0.insert(verifyCodes).values({ code, ip, timestamp: time })