fix update route

This commit is contained in:
ry 2019-12-08 18:08:51 +01:00
parent cb1eb4cc5a
commit 5299c2efc2

View file

@ -84,7 +84,7 @@ module.exports = (client) => {
success: false,
message: 'You are not authorized to access this Endpoint'
});
}
} else {
await exec('git pull')
.then((r) => {
console.log('Pulled latest changes');
@ -101,6 +101,7 @@ module.exports = (client) => {
});
console.error(error);
});
}
});
app.listen(port /* , hostname */, () => {