diff --git a/app/utils/powerSchedule.js b/app/utils/powerSchedule.js index 17d9134..36065d1 100644 --- a/app/utils/powerSchedule.js +++ b/app/utils/powerSchedule.js @@ -60,8 +60,8 @@ const zulip = require("zulip-js"); ) { let params = { type: "stream", - to: "Result test - auto.nswteam.net", - topic: "Lịch cúp điện", + to: "APAC Tech Bão", + topic: "Thông báo chung", content: ":warning: :date: :warning:\n\n" + tableData diff --git a/app/utils/sendStatusOtherSystem.js b/app/utils/sendStatusOtherSystem.js index 890620e..390a0df 100644 --- a/app/utils/sendStatusOtherSystem.js +++ b/app/utils/sendStatusOtherSystem.js @@ -1011,7 +1011,7 @@ const checkMultipleRequest = async () => { name: req.name, status: ":red_circle:", code: response.status, - lengthOrData: "Error: " + response, + lengthOrData: "Error: " + JSON.stringify(response, null, 2), }); } // .then((response) => { @@ -1085,7 +1085,7 @@ const checkMultipleRequest = async () => { name: req.name, status: ":red_circle:", code: response.status, - lengthOrData: "Error: " + response, + lengthOrData: "Error: " + JSON.stringify(response, null, 2), }); } } @@ -1145,7 +1145,7 @@ const checkMultipleRequest = async () => { name: req.name, status: ":red_circle:", code: "bad", - lengthOrData: "Error: " + error, + lengthOrData: "Error: " + JSON.stringify(error, null, 2) }); } });