From fab517d91498e627e8d7f2372b9163b1c8f43aa1 Mon Sep 17 00:00:00 2001 From: illfixit <66363651+illfixit@users.noreply.github.com> Date: Wed, 9 Oct 2024 13:36:58 +0200 Subject: [PATCH] feat: deactivate/reactivate implementation for both fake users and fake orgs --- .../src/app/core/api/fake-backend/impl/fake-users.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/authority-portal-frontend/src/app/core/api/fake-backend/impl/fake-users.ts b/authority-portal-frontend/src/app/core/api/fake-backend/impl/fake-users.ts index 92bacd59f..e19a4625b 100644 --- a/authority-portal-frontend/src/app/core/api/fake-backend/impl/fake-users.ts +++ b/authority-portal-frontend/src/app/core/api/fake-backend/impl/fake-users.ts @@ -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()}; };