From b19fb6aeb652d3269f4b2bf89b12618ff2989975 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Sat, 31 May 2025 02:17:54 -0500 Subject: [PATCH] refactor(historical eom): added logging to know when it fires off --- server/services/logistics/controller/eom/historicalInv.ts | 2 ++ server/services/logistics/utils/logisticsIntervals.ts | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/server/services/logistics/controller/eom/historicalInv.ts b/server/services/logistics/controller/eom/historicalInv.ts index 6de1e4e..223927f 100644 --- a/server/services/logistics/controller/eom/historicalInv.ts +++ b/server/services/logistics/controller/eom/historicalInv.ts @@ -78,6 +78,8 @@ export const runHistoricalData = async () => { }) ); + createLog("info", "lst", "eom", ` historical data was just added.`); + if (error) { createLog( "error", diff --git a/server/services/logistics/utils/logisticsIntervals.ts b/server/services/logistics/utils/logisticsIntervals.ts index dd6ebd1..0b17178 100644 --- a/server/services/logistics/utils/logisticsIntervals.ts +++ b/server/services/logistics/utils/logisticsIntervals.ts @@ -16,6 +16,11 @@ export const createLogisticsJob = ( } // Create new job with Croner + + // console.log(timezone); + // console.log( + // new Date().toLocaleString("en-US", { timeZone: "America/Chicago" }) + // ); runningLogisticsCrons[id] = new Cron( schedule, {