backend interactor service: add approveUser and denyUser functions
This commit is contained in:
parent
2cf28acfd1
commit
b8d0a6a0ba
1 changed files with 11 additions and 1 deletions
|
@ -42,6 +42,14 @@ const backendInteractorService = (credentials) => {
|
||||||
return apiService.unblockUser({credentials, id})
|
return apiService.unblockUser({credentials, id})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const approveUser = (id) => {
|
||||||
|
return apiService.approveUser({credentials, id})
|
||||||
|
}
|
||||||
|
|
||||||
|
const denyUser = (id) => {
|
||||||
|
return apiService.denyUser({credentials, id})
|
||||||
|
}
|
||||||
|
|
||||||
const startFetching = ({timeline, store, userId = false}) => {
|
const startFetching = ({timeline, store, userId = false}) => {
|
||||||
return timelineFetcherService.startFetching({timeline, store, credentials, userId})
|
return timelineFetcherService.startFetching({timeline, store, credentials, userId})
|
||||||
}
|
}
|
||||||
|
@ -89,7 +97,9 @@ const backendInteractorService = (credentials) => {
|
||||||
followImport,
|
followImport,
|
||||||
deleteAccount,
|
deleteAccount,
|
||||||
changePassword,
|
changePassword,
|
||||||
fetchFollowRequests
|
fetchFollowRequests,
|
||||||
|
approveUser,
|
||||||
|
denyUser
|
||||||
}
|
}
|
||||||
|
|
||||||
return backendInteractorServiceInstance
|
return backendInteractorServiceInstance
|
||||||
|
|
Loading…
Reference in a new issue