fix(07.1-02): use updatedAt camelCase in user timezone UPDATE
This commit is contained in:
parent
91ccf6560f
commit
d31fd48cad
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ export async function PUT(request: NextRequest): Promise<NextResponse> {
|
||||||
try {
|
try {
|
||||||
// Authoritative write target: session.user.id. NO userId from body.
|
// Authoritative write target: session.user.id. NO userId from body.
|
||||||
const result = await postgresClient.query<{ timezone: string }>(
|
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],
|
[candidate, session!.user.id],
|
||||||
);
|
);
|
||||||
if (result.rowCount === 0) {
|
if (result.rowCount === 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue