backend interactor service: add approveUser and denyUser functions

This commit is contained in:
William Pitcock 2018-06-07 00:29:13 +00:00
parent 2cf28acfd1
commit b8d0a6a0ba

View file

@ -42,6 +42,14 @@ const backendInteractorService = (credentials) => {
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}) => {
return timelineFetcherService.startFetching({timeline, store, credentials, userId})
}
@ -89,7 +97,9 @@ const backendInteractorService = (credentials) => {
followImport,
deleteAccount,
changePassword,
fetchFollowRequests
fetchFollowRequests,
approveUser,
denyUser
}
return backendInteractorServiceInstance