This commit is contained in:
joseph le 2023-09-28 08:05:01 +07:00
parent 9b7310beeb
commit 867f2d0472
2 changed files with 17 additions and 8 deletions

View File

@ -52,8 +52,17 @@ const sendNotification = async () => {
log += stderr;
}
});
let params = {
type: "stream",
to: "Result test - auto.nswteam.net",
topic: "AU-dev",
content: "Test",
};
client.messages.send(params);
setTimeout(async () => {
console.log({auto1: auto1, auto2:auto2, log: log})
console.log({ auto1: auto1, auto2: auto2, log: log });
if (process.argv[2] === "interval") {
if (log.includes("succeeded") === false) {
exec("pm2 restart all", (error, stdout, stderr) => {
@ -111,11 +120,11 @@ const sendNotification = async () => {
// };
let params = {
type: "stream",
to: "Result test - auto.nswteam.net",
topic: "AU-dev",
content: content,
};
type: "stream",
to: "Result test - auto.nswteam.net",
topic: "AU-dev",
content: content,
};
await client.messages.send(params);
}

View File

@ -51,8 +51,8 @@ const databaseConfig: DatabaseConfig = {
migrations: {
naturalSort: true,
},
healthCheck: true,
debug: true,
healthCheck: false,
debug: false,
},
},
};