fix update route
This commit is contained in:
parent
cb1eb4cc5a
commit
5299c2efc2
|
@ -84,7 +84,7 @@ module.exports = (client) => {
|
||||||
success: false,
|
success: false,
|
||||||
message: 'You are not authorized to access this Endpoint'
|
message: 'You are not authorized to access this Endpoint'
|
||||||
});
|
});
|
||||||
}
|
} else {
|
||||||
await exec('git pull')
|
await exec('git pull')
|
||||||
.then((r) => {
|
.then((r) => {
|
||||||
console.log('Pulled latest changes');
|
console.log('Pulled latest changes');
|
||||||
|
@ -101,6 +101,7 @@ module.exports = (client) => {
|
||||||
});
|
});
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
app.listen(port /* , hostname */, () => {
|
app.listen(port /* , hostname */, () => {
|
||||||
|
|
Loading…
Reference in New Issue