From 854ad21b202db8b3056175a664bc808a216ed431 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Fri, 5 May 2023 10:16:41 -0700 Subject: [PATCH] Update autohouse header auth. --- server/data/autohouse.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/data/autohouse.js b/server/data/autohouse.js index bce69ec0f..dab3581cb 100644 --- a/server/data/autohouse.js +++ b/server/data/autohouse.js @@ -40,11 +40,7 @@ exports.default = async (req, res) => { const specificShopIds = req.body.bodyshopIds; // ['uuid] const { start, end, skipUpload } = req.body; //YYYY-MM-DD - if ( - !start || - !moment(start).isValid || - req.headers["x-imex-auth"] !== process.env.AUTOHOUSE_AUTH_TOKEN - ) { + if (req.headers["x-imex-auth"] !== process.env.AUTOHOUSE_AUTH_TOKEN) { res.sendStatus(401); return; }