From 1373a8aede205b79199881c51392611accd6275d Mon Sep 17 00:00:00 2001 From: samuel-p Date: Wed, 3 Nov 2021 18:09:31 +0100 Subject: [PATCH] reverted "fix" --- src/main.status.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main.status.ts b/src/main.status.ts index 64b3a98..a973479 100644 --- a/src/main.status.ts +++ b/src/main.status.ts @@ -79,12 +79,6 @@ api.post('/update/health', (req, res) => { return res.status(401).send('invalid token'); } const serviceId = req.query.service as string; - if (!config.groups - .map(g => g.services).reduce((x, y) => x.concat(y), []) - .map(s => s.id).includes(serviceId)) { - // TODO remove old caches - return res.send('OK'); - } let services: { id: string, state: string }[] = []; if (serviceId) { services = [{id: serviceId, state: JSONPath({path: serviceStatePaths[serviceId], json: req.body, wrap: false})}];