fix update route
This commit is contained in:
parent
cb1eb4cc5a
commit
5299c2efc2
1 changed files with 2 additions and 1 deletions
|
@ -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 */, () => {
|
||||
|
|
Loading…
Reference in a new issue