aboutsummaryrefslogtreecommitdiff
path: root/src/services/backend_interactor_service
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-11-19 14:41:39 -0500
committertaehoon <th.dev91@gmail.com>2019-12-15 14:32:04 -0500
commit4e4c4af422c400d016e4605f8bcf699f7154a8b4 (patch)
tree5b4c4940b670921e36f574e61167144dec9908c8 /src/services/backend_interactor_service
parent36376ce57c93c81317b6a8b0b50699d6b8488f57 (diff)
toggle_activation api is also deprecated
Diffstat (limited to 'src/services/backend_interactor_service')
-rw-r--r--src/services/backend_interactor_service/backend_interactor_service.js12
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 e0a15d3b..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 toggleActivationStatus = ({ screen_name }) => {
- return apiService.toggleActivationStatus({ screen_name, 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,
- toggleActivationStatus,
+ activateUser,
+ deactivateUser,
register,
getCaptcha,
updateAvatar,