From fbe47a9f8ee8ebe5ea097a6a47fa6c6560ec30ed Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 21 Feb 2024 07:32:47 +0100 Subject: [PATCH] Fix build --- server/core/controllers/api/config.ts | 7 ++++++- server/core/controllers/api/videos/upload.ts | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/server/core/controllers/api/config.ts b/server/core/controllers/api/config.ts index eece4dbe3..881ab270f 100644 --- a/server/core/controllers/api/config.ts +++ b/server/core/controllers/api/config.ts @@ -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) } diff --git a/server/core/controllers/api/videos/upload.ts b/server/core/controllers/api/videos/upload.ts index 3dee3b070..477b342ac 100644 --- a/server/core/controllers/api/videos/upload.ts +++ b/server/core/controllers/api/videos/upload.ts @@ -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'