fix(blocking notification): added throw error so i get an email when it errors

This commit is contained in:
2025-04-21 21:06:23 -05:00
parent abc39634fb
commit a3732c0208
2 changed files with 5 additions and 53 deletions

View File

@@ -28,6 +28,10 @@ export default async function qualityBlockingMonitor(notifyData: any) {
.where(eq(notifications.name, notifyData.name))
);
if (notiError) {
throw Error(`${JSON.stringify(notiError)}`);
}
const notiData: any = noti;
const blockingOrders = notiData[0]?.notifiySettings.sentBlockingOrders.map(
(l: any) => {