Add async to method decorator

This commit is contained in:
Simon Giesel 2019-09-24 10:19:58 +00:00
parent 8497b3c8cf
commit 5b6abeab75

View file

@ -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 => {