diff --git a/app/api/settings/profile/route.ts b/app/api/settings/profile/route.ts index a12eba7..5288ef3 100644 --- a/app/api/settings/profile/route.ts +++ b/app/api/settings/profile/route.ts @@ -23,7 +23,7 @@ export async function PATCH(request: NextRequest) { } const result = await pool.query( - `UPDATE "user" SET name = $1, updated_at = NOW() WHERE id = $2 + `UPDATE "user" SET name = $1, "updatedAt" = NOW() WHERE id = $2 RETURNING id, name, email`, [name, session!.user.id] ); diff --git a/lib/bootstrap.ts b/lib/bootstrap.ts index 13955aa..8fd3e95 100644 --- a/lib/bootstrap.ts +++ b/lib/bootstrap.ts @@ -94,7 +94,7 @@ export async function userRequiresSetup(userId: string): Promise { export async function clearSetupFlag(userId: string): Promise { try { await pool.query( - 'UPDATE "user" SET requires_setup = false, updated_at = NOW() WHERE id = $1', + 'UPDATE "user" SET requires_setup = false, "updatedAt" = NOW() WHERE id = $1', [userId] ); } catch (error) {