Skip to content

Commit

Permalink
feat: deactivate/reactivate implementation for both fake users and fa…
Browse files Browse the repository at this point in the history
…ke orgs
  • Loading branch information
illfixit committed Oct 9, 2024
1 parent 4cba5fa commit fab517d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,11 +474,13 @@ const updateUserStatusOfOrganizationById = (

export const deactivateUser = (userId: string): IdResponse => {
updateUserStatusOfOrganizationById(userId, 'DEACTIVATED');
patchUser(userId, () => ({registrationStatus: 'DEACTIVATED'}));
return {id: userId, changedDate: new Date()};
};

export const reactivateUser = (userId: string): IdResponse => {
updateUserStatusOfOrganizationById(userId, 'ACTIVE');
patchUser(userId, () => ({registrationStatus: 'ACTIVE'}));
return {id: userId, changedDate: new Date()};
};

Expand Down

0 comments on commit fab517d

Please sign in to comment.