reverted "fix"
continuous-integration/woodpecker the build was successful Details

This commit is contained in:
Samuel Philipp 2021-11-03 18:09:31 +01:00
parent d14291e50b
commit 1373a8aede
1 changed files with 0 additions and 6 deletions

View File

@ -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})}];