Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F325792
lists_fetcher.service.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
601 B
Referenced Files
None
Subscribers
None
lists_fetcher.service.js
View Options
import
apiService
from
'../api/api.service.js'
import
{
promiseInterval
}
from
'../promise_interval/promise_interval.js'
const
fetchAndUpdate
=
({
store
,
credentials
})
=>
{
return
apiService
.
fetchLists
({
credentials
})
.
then
(
lists
=>
{
store
.
commit
(
'setLists'
,
lists
)
},
()
=>
{})
.
catch
(()
=>
{})
}
const
startFetching
=
({
credentials
,
store
})
=>
{
const
boundFetchAndUpdate
=
()
=>
fetchAndUpdate
({
credentials
,
store
})
boundFetchAndUpdate
()
return
promiseInterval
(
boundFetchAndUpdate
,
240000
)
}
const
listsFetcher
=
{
startFetching
}
export
default
listsFetcher
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 24, 4:24 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
95987
Default Alt Text
lists_fetcher.service.js (601 B)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment