From f885c9e6a178862ef954c330233ca196be4a4a4d Mon Sep 17 00:00:00 2001 From: joseph le Date: Fri, 17 Nov 2023 07:59:13 +0700 Subject: [PATCH] update function power --- app/utils/powerSchedule.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);