Skip to content

Commit

Permalink
Fix example code (#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinsoncol committed May 14, 2024
1 parent e70e08e commit 6007fe0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ async function verifyVerificationCode(user: User, code: string): Promise<boolean
await db.commit();
return false;
}
await db.table("email_verification_code").where("id", "=", code.id).delete();
await db.table("email_verification_code").where("id", "=", databaseCode.id).delete();
await db.commit();

if (!isWithinExpirationDate(databaseCode.expires_at)) {
Expand Down

0 comments on commit 6007fe0

Please sign in to comment.