Skip to content

Commit

Permalink
fixed updatedat issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Prathamesh483 committed Dec 1, 2024
1 parent e040504 commit 7c97cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class Repository {

const query = `
UPDATE students
SET ${updates.join(", ")}
SET ${updates.join(", ")}, updated_at = CURRENT_TIMESTAMP
WHERE userid = $${values.length}
RETURNING *;
`;
Expand Down

0 comments on commit 7c97cd9

Please sign in to comment.