fix(logistics): historical checks for no data errors when feature is activeed
This commit is contained in:
@@ -49,7 +49,7 @@ const historicalInvImport = async () => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data?.length === 0) {
|
if (data.length === 0) {
|
||||||
const avSQLQuery = sqlQuerySelector(`datamart.activeArticles`) as SqlQuery;
|
const avSQLQuery = sqlQuerySelector(`datamart.activeArticles`) as SqlQuery;
|
||||||
|
|
||||||
if (!avSQLQuery.success) {
|
if (!avSQLQuery.success) {
|
||||||
@@ -139,7 +139,7 @@ const historicalInvImport = async () => {
|
|||||||
subModule: "inv",
|
subModule: "inv",
|
||||||
message: `Error adding historical data to lst db`,
|
message: `Error adding historical data to lst db`,
|
||||||
data: errorImport as any,
|
data: errorImport as any,
|
||||||
notify: true,
|
notify: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user