Skip to content

Commit

Permalink
feat: add updatedAt timestamp
Browse files Browse the repository at this point in the history
Signed-off-by: Jeroen Branje <[email protected]>
  • Loading branch information
jeroenbranje committed Jan 30, 2024
1 parent 9a4f9ca commit 2217c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/envited.ascs.digital/common/database/queries/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { Credential, DatabaseConnection, Issuer, User } from '../types'
export const deleteUserById = (db: DatabaseConnection) => async (id: string, issuerId: string) =>
db
.update(user)
.set({ isActive: false })
.set({ isActive: false, updatedAt: new Date() })
.where(and(eq(user.id, id), eq(user.issuerId, issuerId)))
.returning({ updatedId: user.id })

Expand Down

0 comments on commit 2217c3c

Please sign in to comment.