aboutsummaryrefslogtreecommitdiff
path: root/src/services/notifications_fetcher/request_fetcher.service.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/notifications_fetcher/request_fetcher.service.js')
-rw-r--r--src/services/notifications_fetcher/request_fetcher.service.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/services/notifications_fetcher/request_fetcher.service.js b/src/services/notifications_fetcher/request_fetcher.service.js
deleted file mode 100644
index beb6c320..00000000
--- a/src/services/notifications_fetcher/request_fetcher.service.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import apiService from '../api/api.service.js'
-
-const fetchAndUpdate = ({ store, credentials }) => {
- return apiService.fetchFollowRequests({ credentials })
- .then((requests) => {
- store.commit('setFollowRequests', requests)
- }, () => {})
- .catch(() => {})
-}
-
-const startFetching = ({credentials, store}) => {
- fetchAndUpdate({ credentials, store })
- const boundFetchAndUpdate = () => fetchAndUpdate({ credentials, store })
- return setInterval(boundFetchAndUpdate, 10000)
-}
-
-const requestFetcher = {
- startFetching
-}
-
-export default requestFetcher