mirror of https://github.com/Chocobozzz/PeerTube
Fix auto index follow
parent
f0876a2c35
commit
92ce62331e
|
@ -36,7 +36,9 @@ export class AutoFollowIndexInstances extends AbstractScheduler {
|
||||||
|
|
||||||
const uri = indexUrl + INSTANCES_INDEX.HOSTS_PATH
|
const uri = indexUrl + INSTANCES_INDEX.HOSTS_PATH
|
||||||
|
|
||||||
const qs = this.lastCheck ? { since: this.lastCheck.toISOString() } : {}
|
const qs = { count: 1000 }
|
||||||
|
if (this.lastCheck) Object.assign(qs, { since: this.lastCheck.toISOString() })
|
||||||
|
|
||||||
this.lastCheck = new Date()
|
this.lastCheck = new Date()
|
||||||
|
|
||||||
const { body } = await doRequest({ uri, qs, json: true })
|
const { body } = await doRequest({ uri, qs, json: true })
|
||||||
|
|
Loading…
Reference in New Issue