akkoma-fe/src/services/config_fetcher/config_fetcher.service.js
FloatingGhost 7bda0f4e68
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
include sync, delete buttons
2022-10-02 17:00:02 +01:00

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