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, }); }