Compare commits

...

2 commits

Author SHA1 Message Date
1373a8aede reverted "fix"
All checks were successful
continuous-integration/woodpecker the build was successful
2021-11-03 18:09:31 +01:00
d14291e50b Revert "changed docker image"
This reverts commit 51638c66e6.
2021-11-03 18:09:09 +01:00
2 changed files with 2 additions and 8 deletions

View file

@ -5,7 +5,7 @@ pipeline:
- npm install - npm install
- npm run build:ssr - npm run build:ssr
docker: docker:
image: techknowlogick/drone-docker image: plugins/docker
secrets: secrets:
- DOCKER_USERNAME - DOCKER_USERNAME
- DOCKER_PASSWORD - DOCKER_PASSWORD
@ -17,7 +17,7 @@ pipeline:
event: event:
- push - push
cr: cr:
image: techknowlogick/drone-docker image: plugins/docker
secrets: secrets:
- source: CR_USERNAME - source: CR_USERNAME
target: DOCKER_USERNAME target: DOCKER_USERNAME

View file

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