check status

This commit is contained in:
Joseph Le 2023-10-17 09:56:01 +00:00
parent ee18ef3b03
commit 6f85d0aa48
1 changed files with 14 additions and 12 deletions

View File

@ -76,10 +76,7 @@ app.post("/git/gitea-webhook", async (req, res) => {
console.log(`Error executing command: ${error}`);
title += "New Git envent: " + giteaEvent;
} else {
setTimeout(() => {
console.log(stdout);
checkStatus="ready"
// fs.writeFileSync("./service_run/checkFile", "false");
if (
stderr.includes("Error") ||
stderr.includes("failed") ||
@ -90,7 +87,12 @@ app.post("/git/gitea-webhook", async (req, res) => {
} else {
title += "New Git envent: " + giteaEvent + "(success)";
}
}, 20000);
setTimeout(() => {
checkStatus="ready"
// fs.writeFileSync("./service_run/checkFile", "false");
}, 10000);
}
if (checkSendMail === "True") {