gym selection via profile screen

This commit is contained in:
dimitar committed 2025-12-18 19:59:20 +01:00
1 parent 339d798a88
commit 02879cefd1
3 files changed
+72 -4

No files matched your search

Binary file not shown.
+1 -1
View File
@@ -63,7 +63,7 @@ export async function PATCH(req: Request) {
gymId,
});
await db.run(
sql`UPDATE users SET gym_id = ${gymId ?? null}, updated_at = ${new Date()} WHERE id = ${userId}`,
sql`UPDATE users SET gym_id = ${gymId ?? null}, updated_at = ${Date.now()} WHERE id = ${userId}`,
);
console.log("PATCH /api/users/gym update completed");