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

@@ -18,7 +18,7 @@ const globalConfig = await fetch(`${process.env.API_DBHOST}/config/${process.env
return response.json() return response.json()
} }
}) })
var globalVersion = execSync(`git show --oneline -s`).toString().split(" ")[0] const globalVersion = execSync(`git show --oneline -s`).toString().split(" ")[0]
// Returns ISO 8601 Date & 24hr time for UTC-7/PDT // Returns ISO 8601 Date & 24hr time for UTC-7/PDT
const startTime = new Date(new Date().getTime() - 25200000).toISOString().slice(0,19).replace('T',' ') const startTime = new Date(new Date().getTime() - 25200000).toISOString().slice(0,19).replace('T',' ')

View File

@@ -50,9 +50,9 @@ app.post("/api/sync", (rreq,rres) => {
rres.sendStatus(200) rres.sendStatus(200)
} else if (rreq.headers["x-github-event"] == "push") { } else if (rreq.headers["x-github-event"] == "push") {
execSync("git pull") execSync("git pull")
globalVersion = execSync(`git show --oneline -s`).toString().split(" ")[0] logRequest(rres,rreq,200,"Ran git pull, exiting to restart...")
logRequest(rres,rreq,200,"Ran git pull")
rres.sendStatus(200) rres.sendStatus(200)
process.exit(0)
} else { } else {
logRequest(rres,rreq,400) logRequest(rres,rreq,400)
rres.sendStatus(400) rres.sendStatus(400)

View File

@@ -1,3 +0,0 @@
# miau
miau
* miau