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 */