Skip to content

Commit 714744d

Browse files
committed
fix: update timestamp on project update
1 parent 8c68d4a commit 714744d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • services/libs/data-access-layer/src

services/libs/data-access-layer/src/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ export async function updateTableById<T extends string>(
161161
return qx.result(
162162
`
163163
UPDATE $(table:name)
164-
SET ${fields.map((key, i) => `$(fields.col${i}:name) = $(data.${key})`).join(',\n')}
164+
SET
165+
${fields.map((key, i) => `$(fields.col${i}:name) = $(data.${key})`).join(',\n')},
166+
"updatedAt" = CURRENT_TIMESTAMP
165167
WHERE id = $(id)
166168
RETURNING *
167169
`,

0 commit comments

Comments
 (0)