Compare commits
1 commit
main
...
renovate/d
Author | SHA1 | Date | |
---|---|---|---|
Renovate Bot | d493f40d87 |
|
@ -33,7 +33,7 @@
|
|||
"@types/node-cron": "^2.0.5",
|
||||
"bootstrap": "^4.6.2",
|
||||
"cron": "^2.3.1",
|
||||
"dayjs": "^1.11.0",
|
||||
"dayjs": "^1.11.10",
|
||||
"express": "^4.17.1",
|
||||
"flag-icon-css": "^3.5.0",
|
||||
"jsonpath-plus": "^6.0.1",
|
||||
|
|
|
@ -79,6 +79,12 @@ 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})}];
|
||||
|
|
Reference in a new issue