Skip to content

Commit

Permalink
Fix build - userStatus is now just status
Browse files Browse the repository at this point in the history
  • Loading branch information
conorluddy committed Jun 30, 2024
1 parent 63aa5f9 commit 45c1d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/users/deleteUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const deleteUser = async (req: Request, res: Response) => {

const result = await db
.update(tableUsers)
.set({ userStatus: STATUS.DELETED, deletedAt: new Date() })
.set({ status: STATUS.DELETED, deletedAt: new Date() })
.where(eq(tableUsers.id, id))
.returning({ updatedId: tableUsers.id })

Expand Down

0 comments on commit 45c1d5d

Please sign in to comment.