From 5b6abeab7513ccf93ee9730425caa55d10cb944c Mon Sep 17 00:00:00 2001 From: Simon Giesel Date: Tue, 24 Sep 2019 10:19:58 +0000 Subject: [PATCH] Add async to method decorator --- routes/restart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/restart.js b/routes/restart.js index ebd0394..dec4331 100644 --- a/routes/restart.js +++ b/routes/restart.js @@ -4,7 +4,7 @@ var docker = require('../bin/dockerode'); const registry = 'registry.cliffbreak.de/'; -router.get('/:id/:image', (req, res, next) => { +router.get('/:id/:image', async (req, res, next) => { if (req.params.image = ! null) { await pullImage(req.params.image); restartContainer().then(data => {