update lib power

This commit is contained in:
joseph le 2023-10-21 08:10:19 +07:00
parent 36ff4bd2f8
commit c121ff6bc5
1 changed files with 3 additions and 2 deletions

View File

@ -73,10 +73,11 @@ const { addLogFunction } = require("./addLogFunctionJS");
}; };
client.messages.send(params); client.messages.send(params);
} }
}, 5000); const fileName =
const fileName =
"/home/Log_service/app/store/logsAPI/" + "/home/Log_service/app/store/logsAPI/" +
moment(Date.now()).format("DD_MM_YYYY").toString() + moment(Date.now()).format("DD_MM_YYYY").toString() +
".log"; ".log";
addLogFunction(fileName, JSON.stringify(params, null, 2), "powerSchedule") addLogFunction(fileName, JSON.stringify(params, null, 2), "powerSchedule")
}, 5000);
})(); })();