forked from AkkomaGang/akkoma-fe
floatingghost
db46879a8f
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk> Reviewed-on: AkkomaGang/pleroma-fe#212
13 lines
357 B
JavaScript
13 lines
357 B
JavaScript
import { promiseInterval } from '../promise_interval/promise_interval.js'
|
|
|
|
const startFetching = ({ credentials, store }) => {
|
|
const boundFetchAndUpdate = () => store.dispatch('getSettingsProfile')
|
|
boundFetchAndUpdate()
|
|
return promiseInterval(boundFetchAndUpdate, 10 * 60000)
|
|
}
|
|
|
|
const configFetcher = {
|
|
startFetching
|
|
}
|
|
|
|
export default configFetcher
|