Compare commits
21 commits
renovate/d
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
302b3b627e | ||
|
18967cf2f8 | ||
|
1373a8aede | ||
|
d14291e50b | ||
|
51638c66e6 | ||
|
8ab0139cb7 | ||
|
2771288401 | ||
|
c3b96e18e9 | ||
|
c2ccbce06a | ||
|
e3df2a3ef6 | ||
|
147fbe3eca | ||
|
1f810a5d78 | ||
|
c63d2f0545 | ||
|
b797208925 | ||
|
a9b3f694b0 | ||
|
0c609261d7 | ||
|
0c79b918a1 | ||
|
efea0c7674 | ||
|
eed26d5740 | ||
|
0508e681ab | ||
|
b489d797e6 |
|
@ -79,12 +79,6 @@ api.post('/update/health', (req, res) => {
|
||||||
return res.status(401).send('invalid token');
|
return res.status(401).send('invalid token');
|
||||||
}
|
}
|
||||||
const serviceId = req.query.service as string;
|
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 }[] = [];
|
let services: { id: string, state: string }[] = [];
|
||||||
if (serviceId) {
|
if (serviceId) {
|
||||||
services = [{id: serviceId, state: JSONPath({path: serviceStatePaths[serviceId], json: req.body, wrap: false})}];
|
services = [{id: serviceId, state: JSONPath({path: serviceStatePaths[serviceId], json: req.body, wrap: false})}];
|
||||||
|
|
Reference in a new issue