Standarizing

This commit is contained in:
Luis Fernando Molina committed 2020-11-25 16:52:07 +01:00
1 parent 8bb14854b7
commit 93d9cd403e
10 files changed
+43 -40

No files matched your search

+2 -2
View File
@@ -248,10 +248,10 @@
/* Telling the world we are alive and doing well */
let currentDateString = bot.multiPeriodDailyProcessDatetime.getUTCFullYear() + '-' + utilities.pad(bot.multiPeriodDailyProcessDatetime.getUTCMonth() + 1, 2) + '-' + utilities.pad(bot.multiPeriodDailyProcessDatetime.getUTCDate(), 2)
let currentDate = new Date(bot.multiPeriodDailyProcessDatetime)
let percentage = global.getPercentage(fromDate, currentDate, lastDate)
let percentage = global.GET_PERCENTAGE(fromDate, currentDate, lastDate)
bot.processHeartBeat(currentDateString, percentage)
if (global.areEqualDates(currentDate, new Date()) === false) {
if (global.GET_EQUAL_DATES(currentDate, new Date()) === false) {
logger.newInternalLoop(bot.codeName, bot.process, currentDate, percentage)
}
checkStopTaskGracefully()