From 4f848bb649f350c9d370daa09c6fc48f7b76e2e2 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Mon, 1 Jun 2026 14:24:12 -0500 Subject: [PATCH] fix(logistics): historical checks for no data errors when feature is activeed --- backend/logistics/logistics.historicalInv.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/logistics/logistics.historicalInv.ts b/backend/logistics/logistics.historicalInv.ts index f1e53ea..3e19b0c 100644 --- a/backend/logistics/logistics.historicalInv.ts +++ b/backend/logistics/logistics.historicalInv.ts @@ -49,7 +49,7 @@ const historicalInvImport = async () => { }); } - if (data?.length === 0) { + if (data.length === 0) { const avSQLQuery = sqlQuerySelector(`datamart.activeArticles`) as SqlQuery; if (!avSQLQuery.success) { @@ -139,7 +139,7 @@ const historicalInvImport = async () => { subModule: "inv", message: `Error adding historical data to lst db`, data: errorImport as any, - notify: true, + notify: false, }); }