From fc508f12b30ba5766a73e94af2d97198db8556ec Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Wed, 18 Sep 2024 22:34:48 -0600 Subject: [PATCH] Add override to allow downloading any asset --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 74a5246..daee240 100644 --- a/index.js +++ b/index.js @@ -262,7 +262,7 @@ app.post("/", async (req, res) => { message: codes[errorCode].message, additional: codes[errorCode].description }; - } else if (json[index].assetTypeId !== 3) { + } else if (json[index].assetTypeId !== 3 && req.body.overrideAuth !== process.env.OVERRIDE_KEY) { // Return 415, the asset isnt audio acc[assetId] = { status: "failure",