1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Cache refresh actor promise

This commit is contained in:
Chocobozzz 2021-06-09 13:34:40 +02:00
parent a6a12dae10
commit 4ead40e776
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 49 additions and 15 deletions

View file

@ -47,7 +47,7 @@ async function refreshActor (actorUrl: string) {
const actor = await ActorModel.loadByUrlAndPopulateAccountAndChannel(actorUrl)
if (actor) {
await refreshActorIfNeeded(actor, fetchType)
await refreshActorIfNeeded({ actor, fetchedType: fetchType })
}
}