forked from AkkomaGang/akkoma-fe
14 lines
356 B
JavaScript
14 lines
356 B
JavaScript
|
import { promiseInterval } from '../promise_interval/promise_interval.js'
|
||
|
|
||
|
const startFetching = ({ credentials, store }) => {
|
||
|
const boundFetchAndUpdate = () => store.dispatch('getSettingsProfile')
|
||
|
boundFetchAndUpdate()
|
||
|
return promiseInterval(boundFetchAndUpdate, 5 * 60000)
|
||
|
}
|
||
|
|
||
|
const configFetcher = {
|
||
|
startFetching
|
||
|
}
|
||
|
|
||
|
export default configFetcher
|