aboutsummaryrefslogtreecommitdiff
path: root/src/services/backend_interactor_service
diff options
context:
space:
mode:
authordave <starpumadev@gmail.com>2019-02-07 09:57:16 -0500
committerdave <starpumadev@gmail.com>2019-02-07 09:57:16 -0500
commit312841717619e397c7cb3255c1cc3e66c0a1044e (patch)
treef003eb4a37c077e8fb99701a1e5e023a26b509c2 /src/services/backend_interactor_service
parenta3a9949a21f69a21c4bd27cccfa2bc0ed1b0d323 (diff)
#315 - separate export and fetch follows logic
Diffstat (limited to 'src/services/backend_interactor_service')
-rw-r--r--src/services/backend_interactor_service/backend_interactor_service.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/services/backend_interactor_service/backend_interactor_service.js b/src/services/backend_interactor_service/backend_interactor_service.js
index 423aeba5..c2d1617e 100644
--- a/src/services/backend_interactor_service/backend_interactor_service.js
+++ b/src/services/backend_interactor_service/backend_interactor_service.js
@@ -14,6 +14,10 @@ const backendInteractorService = (credentials) => {
return apiService.fetchFriends({id, page, isExport, credentials})
}
+ const exportFriends = ({id}) => {
+ return apiService.exportFriends({id, credentials})
+ }
+
const fetchFollowers = ({id, page}) => {
return apiService.fetchFollowers({id, page, credentials})
}
@@ -78,6 +82,7 @@ const backendInteractorService = (credentials) => {
fetchStatus,
fetchConversation,
fetchFriends,
+ exportFriends,
fetchFollowers,
followUser,
unfollowUser,