fix(datamart): fix for delivery date by range error for hardcoded date
This commit is contained in:
@@ -14,7 +14,9 @@ export const startNotificationMonitor = async () => {
|
||||
createLog("info", "notify", "notify", `Notification system is now active.`);
|
||||
|
||||
setInterval(async () => {
|
||||
const { data, error } = await tryCatch(db.select().from(notifications));
|
||||
const { data: notes, error } = (await tryCatch(
|
||||
db.select().from(notifications)
|
||||
)) as any;
|
||||
|
||||
if (error) {
|
||||
createLog(
|
||||
@@ -27,8 +29,6 @@ export const startNotificationMonitor = async () => {
|
||||
);
|
||||
}
|
||||
|
||||
const notes: any = data;
|
||||
|
||||
for (const note of notes) {
|
||||
//if we get deactivated remove it.
|
||||
if (runningCrons[note.name] && !note.active) {
|
||||
|
||||
Reference in New Issue
Block a user