diff --git a/server.js b/server.js index aaf597e..7ed4c08 100644 --- a/server.js +++ b/server.js @@ -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 */, () => {