#388: update naming properly
This commit is contained in:
parent
9f1214555e
commit
cccf33d6dd
2 changed files with 4 additions and 4 deletions
src/services/notifications_fetcher
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue