From 4a2155c88ff77b0536df126cf7c029a25863be18 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Tue, 7 Nov 2023 09:17:45 +0100 Subject: [PATCH] Migrated the contentDelivery.ts server --- server/contentDelivery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/contentDelivery.ts b/server/contentDelivery.ts index f3c9938..99ef4bc 100644 --- a/server/contentDelivery.ts +++ b/server/contentDelivery.ts @@ -13,7 +13,7 @@ app.get("*.*", async (req: Request, res: Response) => { if (!found) return res.status(404).send("

Asset not found

"); if (found.assetEnding !== asset[1]) return res.status(404).send("

Asset not found

"); - await pipeMedia(found.assetId, res); + pipeMedia(found.assetId!, res); }); /** Starts the cdn service */