x
This commit is contained in:
parent
6ef357d16f
commit
c597a20d00
1 changed files with 0 additions and 21 deletions
21
server.js
21
server.js
|
@ -102,28 +102,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'
|
||||||
});
|
});
|
||||||
<<<<<<< HEAD
|
|
||||||
}
|
}
|
||||||
=======
|
|
||||||
} else {
|
|
||||||
await exec('git pull')
|
|
||||||
.then((r) => {
|
|
||||||
console.log('Pulled latest changes');
|
|
||||||
res.status(200).jsonp({
|
|
||||||
success: true,
|
|
||||||
message: 'Successfully pulled latest changes'
|
|
||||||
});
|
|
||||||
trying.edit('```fix\n' + r.stdout + '```');
|
|
||||||
})
|
|
||||||
.catch((error) => {
|
|
||||||
res.status(400).jsonp({
|
|
||||||
success: false,
|
|
||||||
message: error.message
|
|
||||||
});
|
|
||||||
console.error(error);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
>>>>>>> 5299c2efc2d2e6d7f232b54122bc92a27eacdf19
|
|
||||||
});
|
});
|
||||||
|
|
||||||
app.listen(port /* , hostname */, () => {
|
app.listen(port /* , hostname */, () => {
|
||||||
|
|
Loading…
Reference in a new issue