Add async to method decorator
This commit is contained in:
parent
8497b3c8cf
commit
5b6abeab75
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ var docker = require('../bin/dockerode');
|
||||||
|
|
||||||
const registry = 'registry.cliffbreak.de/';
|
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) {
|
if (req.params.image = ! null) {
|
||||||
await pullImage(req.params.image);
|
await pullImage(req.params.image);
|
||||||
restartContainer().then(data => {
|
restartContainer().then(data => {
|
||||||
|
|
Loading…
Reference in a new issue