From 867f2d04720f022dee59e9baf38681562322e1a7 Mon Sep 17 00:00:00 2001 From: joseph le Date: Thu, 28 Sep 2023 08:05:01 +0700 Subject: [PATCH] test DB --- app/utils/sendNotification.js | 21 +++++++++++++++------ config/database.ts | 4 ++-- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/app/utils/sendNotification.js b/app/utils/sendNotification.js index dd8f17e..cca9e4f 100644 --- a/app/utils/sendNotification.js +++ b/app/utils/sendNotification.js @@ -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); } diff --git a/config/database.ts b/config/database.ts index 42c87ea..8108419 100644 --- a/config/database.ts +++ b/config/database.ts @@ -51,8 +51,8 @@ const databaseConfig: DatabaseConfig = { migrations: { naturalSort: true, }, - healthCheck: true, - debug: true, + healthCheck: false, + debug: false, }, }, };