Compare commits
1 commit
main
...
renovate/d
Author | SHA1 | Date | |
---|---|---|---|
bf52158bc4 |
3 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: node:lts-buster@sha256:86853bc87b53623ce8c40fcc0e9dcbdaed64fe7143e178db5735ef1902002d68
|
image: node:lts-buster@sha256:0999271122e2ab1d77c558b72ebfdd20f101469f521f880329eefdeeae4ef898
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build:ssr
|
- npm run build:ssr
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM alpine:3.15.0@sha256:21a3deaa0d32a8057914f36584b5288d2e5ecc984380bc0118285c70fa8c9300
|
FROM alpine:3.18.5@sha256:34871e7290500828b39e22294660bee86d966bc0017544e848dd9a255cdf59e0
|
||||||
|
|
||||||
RUN apk --no-cache add nodejs="14.20.0-r0"
|
RUN apk --no-cache add nodejs="14.20.0-r0"
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,12 @@ 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