From 2658d1f3f326ed9a3f52d5ddf87ce26385e01b73 Mon Sep 17 00:00:00 2001 From: Simon Giesel Date: Tue, 24 Sep 2019 10:34:09 +0000 Subject: [PATCH] Add missing id parameter in if else construct --- routes/restart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/restart.js b/routes/restart.js index dec4331..5f85ad6 100644 --- a/routes/restart.js +++ b/routes/restart.js @@ -7,7 +7,7 @@ const registry = 'registry.cliffbreak.de/'; router.get('/:id/:image', async (req, res, next) => { if (req.params.image = ! null) { await pullImage(req.params.image); - restartContainer().then(data => { + restartContainer(req.params.id).then(data => { res.send(data); });