mirror of https://github.com/Chocobozzz/PeerTube
Fix build
parent
00ee54329a
commit
fbe47a9f8e
|
@ -161,7 +161,12 @@ async function updateInstanceBanner (req: express.Request, res: express.Response
|
||||||
const serverActor = await getServerActor()
|
const serverActor = await getServerActor()
|
||||||
serverActor.Banners = await ActorImageModel.listByActor(serverActor, ActorImageType.BANNER) // Reload banners from DB
|
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)
|
return res.sendStatus(HttpStatusCode.NO_CONTENT_204)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import express from 'express'
|
import express from 'express'
|
||||||
import { getResumableUploadPath } from '@server/helpers/upload.js'
|
import { getResumableUploadPath } from '@server/helpers/upload.js'
|
||||||
import { Redis } from '@server/lib/redis.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 { buildNextVideoState } from '@server/lib/video-state.js'
|
||||||
import { openapiOperationDoc } from '@server/middlewares/doc.js'
|
import { openapiOperationDoc } from '@server/middlewares/doc.js'
|
||||||
import { uuidToShort } from '@peertube/peertube-node-utils'
|
import { uuidToShort } from '@peertube/peertube-node-utils'
|
||||||
|
|
Loading…
Reference in New Issue