Add missing id parameter in if else construct

This commit is contained in:
Simon Giesel 2019-09-24 10:34:09 +00:00
parent 5b6abeab75
commit 2658d1f3f3

View file

@ -7,7 +7,7 @@ const registry = 'registry.cliffbreak.de/';
router.get('/:id/:image', async (req, res, next) => { router.get('/:id/:image', async (req, res, next) => {
if (req.params.image = ! null) { if (req.params.image = ! null) {
await pullImage(req.params.image); await pullImage(req.params.image);
restartContainer().then(data => { restartContainer(req.params.id).then(data => {
res.send(data); res.send(data);
}); });