1
0
Fork 0

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)
}

View file

@ -1,7 +1,7 @@
import express from 'express'
import { getResumableUploadPath } from '@server/helpers/upload.js'
import { Redis } from '@server/lib/redis.js'
import { setupUploadResumableRoutes } from '@server/lib/uploadx.js'
import { setupUploadResumableRoutes, uploadx } from '@server/lib/uploadx.js'
import { buildNextVideoState } from '@server/lib/video-state.js'
import { openapiOperationDoc } from '@server/middlewares/doc.js'
import { uuidToShort } from '@peertube/peertube-node-utils'