diff --git a/backend/notification/notification.reprintLabels.ts b/backend/notification/notification.reprintLabels.ts index 2b5508b..b3f10a8 100644 --- a/backend/notification/notification.reprintLabels.ts +++ b/backend/notification/notification.reprintLabels.ts @@ -9,9 +9,12 @@ import { import { returnFunc } from "../utils/returnHelper.utils.js"; import { sendEmail } from "../utils/sendEmail.utils.js"; import { tryCatch } from "../utils/trycatch.utils.js"; +import { v1QueryRun } from "../utils/pgConnectToLst.utils.js"; const reprint = async (data: any, emails: string) => { - // TODO: do the actual logic for the notification. + // TODO: remove this disable once all 17 plants are on this new lst + v1QueryRun(`update public.notifications set active = false where name = '${data.name}'`) + const { data: l, error: le } = (await tryCatch( db.select().from(notifications).where(eq(notifications.id, data.id)), )) as any;