diff --git a/app/utils/powerSchedule.js b/app/utils/powerSchedule.js index 1b9db1d..0d55637 100644 --- a/app/utils/powerSchedule.js +++ b/app/utils/powerSchedule.js @@ -17,10 +17,8 @@ const { addLogFunction } = require("./addLogFunctionJS"); const client = await zulip(config); const page = await browser.newPage(); - // Điều hướng đến trang web chứa thẻ await page.goto("https://www.cskh.evnspc.vn/TraCuu/LichNgungGiamCungCapDien"); - // Tìm thẻ cần click dựa trên selector CSS hoặc XPath const selectBoxSelector1 = "select#idCongTyDienLuc"; await page.waitForSelector(selectBoxSelector1); await page.select(selectBoxSelector1, "PB11"); @@ -77,7 +75,7 @@ const { addLogFunction } = require("./addLogFunctionJS"); "/home/Log_service/app/store/logsAPI/" + moment(Date.now()).format("DD_MM_YYYY").toString() + ".log"; - + addLogFunction(fileName, JSON.stringify(params, null, 2), "powerSchedule") }, 5000);