fix last commit
This commit is contained in:
@@ -50,9 +50,9 @@ app.post("/api/sync", (rreq,rres) => {
|
||||
rres.sendStatus(200)
|
||||
} else if (rreq.headers["x-github-event"] == "push") {
|
||||
execSync("git pull")
|
||||
globalVersion = execSync(`git show --oneline -s`).toString().split(" ")[0]
|
||||
logRequest(rres,rreq,200,"Ran git pull")
|
||||
logRequest(rres,rreq,200,"Ran git pull, exiting to restart...")
|
||||
rres.sendStatus(200)
|
||||
process.exit(0)
|
||||
} else {
|
||||
logRequest(rres,rreq,400)
|
||||
rres.sendStatus(400)
|
||||
|
||||
Reference in New Issue
Block a user