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

Fix build

This commit is contained in:
Chocobozzz 2024-02-21 07:32:47 +01:00 committed by Chocobozzz
parent 00ee54329a
commit fbe47a9f8e
2 changed files with 7 additions and 2 deletions

View file

@ -161,7 +161,12 @@ async function updateInstanceBanner (req: express.Request, res: express.Response
const serverActor = await getServerActor()
serverActor.Banners = await ActorImageModel.listByActor(serverActor, ActorImageType.BANNER) // Reload banners from DB
await updateLocalActorImageFiles(serverActor.Account, bannerPhysicalFile, ActorImageType.BANNER)
await updateLocalActorImageFiles({
accountOrChannel: serverActor.Account,
imagePhysicalFile: bannerPhysicalFile,
type: ActorImageType.BANNER,
sendActorUpdate: false
})
return res.sendStatus(HttpStatusCode.NO_CONTENT_204)
}