Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

Commit

Permalink
set email to null when user is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
gka committed Feb 17, 2020
1 parent f044234 commit f5a747c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ async function deleteUser(request, h) {
}

await User.update(
{ email: 'DELETED', name: 'DELETED', pwd: 'DELETED', website: 'DELETED', deleted: true },
{ email: null, name: 'DELETED', pwd: 'DELETED', website: 'DELETED', deleted: true },
{ where: { id } }
);

Expand Down

0 comments on commit f5a747c

Please sign in to comment.