Compare commits
21 commits
renovate/j
...
main
Author | SHA1 | Date | |
---|---|---|---|
Samuel Philipp | 302b3b627e | ||
Samuel Philipp | 18967cf2f8 | ||
Samuel Philipp | 1373a8aede | ||
Samuel Philipp | d14291e50b | ||
Samuel Philipp | 51638c66e6 | ||
Samuel Philipp | 8ab0139cb7 | ||
Samuel Philipp | 2771288401 | ||
Samuel Philipp | c3b96e18e9 | ||
Samuel Philipp | c2ccbce06a | ||
Samuel Philipp | e3df2a3ef6 | ||
Samuel Philipp | 147fbe3eca | ||
Samuel Philipp | 1f810a5d78 | ||
Samuel Philipp | c63d2f0545 | ||
Samuel Philipp | b797208925 | ||
Samuel Philipp | a9b3f694b0 | ||
Samuel Philipp | 0c609261d7 | ||
Samuel Philipp | 0c79b918a1 | ||
Samuel Philipp | efea0c7674 | ||
Samuel Philipp | eed26d5740 | ||
Samuel Philipp | 0508e681ab | ||
Samuel Philipp | 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