Compare commits

..

1 commit

Author SHA1 Message Date
Renovate Bot bf52158bc4 Update docker images
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-12-01 03:01:32 +00:00
3 changed files with 8 additions and 2 deletions

View file

@ -1,6 +1,6 @@
pipeline:
build:
image: node:lts-buster@sha256:86853bc87b53623ce8c40fcc0e9dcbdaed64fe7143e178db5735ef1902002d68
image: node:lts-buster@sha256:0999271122e2ab1d77c558b72ebfdd20f101469f521f880329eefdeeae4ef898
commands:
- npm install
- npm run build:ssr

View file

@ -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"

View file

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