fix last commit

This commit is contained in:
Enstrayed
2024-12-29 16:02:45 -08:00
parent 0ac0517d31
commit 5e5ec137dd
3 changed files with 3 additions and 6 deletions

View File

@@ -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)