Skip to content

Commit

Permalink
Fix: Date type mismatch (#1737)
Browse files Browse the repository at this point in the history
Co-authored-by: pilcrow <pilcrowonpaper@gmail.com>
  • Loading branch information
nuit-dhiver and pilcrowonpaper authored Nov 5, 2024
1 parent 46b164f commit a5b631a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/sessions/basic-api/mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export async function validateSessionToken(token: string): Promise<SessionValida
session.expiresAt = new Date(Date.now() + 1000 * 60 * 60 * 24 * 30);
await db.execute(
"UPDATE user_session SET expires_at = ? WHERE id = ?",
Math.floor(session.expiresAt / 1000),
session.expiresAt,
session.id
);
}
Expand Down Expand Up @@ -236,7 +236,7 @@ export async function validateSessionToken(token: string): Promise<SessionValida
session.expiresAt = new Date(Date.now() + 1000 * 60 * 60 * 24 * 30);
await db.execute(
"UPDATE user_session SET expires_at = ? WHERE id = ?",
Math.floor(session.expiresAt / 1000),
session.expiresAt,
session.id
);
}
Expand Down

0 comments on commit a5b631a

Please sign in to comment.