fix(blocking notification): added throw error so i get an email when it errors
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user