FloatingGhost
7bda0f4e68
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
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
|