This commit is contained in:
joseph le 2023-09-28 08:16:38 +07:00
parent cf247b8d47
commit 8e7fd3400e
1 changed files with 9 additions and 1 deletions

View File

@ -61,7 +61,15 @@ const sendNotification = async () => {
if (log === "") {
exec("pm2 restart all", (error, stdout, stderr) => {
if (error) {
return;
// return;
let params = {
type: "stream",
to: "Result test - auto.nswteam.net",
topic: "AU-dev",
content: error,
};
client.messages.send(params);
}
// console.log("RESTART: ", stdout);