From d31fd48cad8e70b65919807468dc13212e834eb9 Mon Sep 17 00:00:00 2001 From: lorentz Date: Thu, 7 May 2026 16:45:52 -0400 Subject: [PATCH] fix(07.1-02): use updatedAt camelCase in user timezone UPDATE --- app/api/me/timezone/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/me/timezone/route.ts b/app/api/me/timezone/route.ts index 98915bd..fc8f407 100644 --- a/app/api/me/timezone/route.ts +++ b/app/api/me/timezone/route.ts @@ -83,7 +83,7 @@ export async function PUT(request: NextRequest): Promise { try { // Authoritative write target: session.user.id. NO userId from body. const result = await postgresClient.query<{ timezone: string }>( - 'UPDATE "user" SET timezone = $1, updated_at = NOW() WHERE id = $2 RETURNING timezone', + 'UPDATE "user" SET timezone = $1, "updatedAt" = NOW() WHERE id = $2 RETURNING timezone', [candidate, session!.user.id], ); if (result.rowCount === 0) {