diff options
Diffstat (limited to 'src/services/backend_interactor_service')
| -rw-r--r-- | src/services/backend_interactor_service/backend_interactor_service.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/services/backend_interactor_service/backend_interactor_service.js b/src/services/backend_interactor_service/backend_interactor_service.js index c16bd1f1..3d4ec6ac 100644 --- a/src/services/backend_interactor_service/backend_interactor_service.js +++ b/src/services/backend_interactor_service/backend_interactor_service.js @@ -89,8 +89,13 @@ const backendInteractorService = credentials => { } // eslint-disable-next-line camelcase - const setActivationStatus = ({ screen_name }, status) => { - return apiService.setActivationStatus({ screen_name, status, credentials }) + const activateUser = ({ screen_name }) => { + return apiService.activateUser({ screen_name, credentials }) + } + + // eslint-disable-next-line camelcase + const deactivateUser = ({ screen_name }) => { + return apiService.deactivateUser({ screen_name, credentials }) } // eslint-disable-next-line camelcase @@ -191,7 +196,8 @@ const backendInteractorService = credentials => { addRight, deleteRight, deleteUser, - setActivationStatus, + activateUser, + deactivateUser, register, getCaptcha, updateAvatar, |
