From 706fa8a04e7aafa3e6694b8cae8f6de4284e0bfd Mon Sep 17 00:00:00 2001 From: Matti Nannt Date: Wed, 2 Oct 2024 02:08:12 +0200 Subject: [PATCH] fix: notification settings not working correctly (#3246) Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com> Co-authored-by: Johannes --- apps/web/app/api/pipeline/route.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/web/app/api/pipeline/route.ts b/apps/web/app/api/pipeline/route.ts index b61be86fe1..a824a140bf 100644 --- a/apps/web/app/api/pipeline/route.ts +++ b/apps/web/app/api/pipeline/route.ts @@ -1,6 +1,5 @@ import { responses } from "@/app/lib/api/response"; import { transformErrorToDetails } from "@/app/lib/api/validator"; -import { Prisma } from "@prisma/client"; import { headers } from "next/headers"; import { prisma } from "@formbricks/database"; import { sendResponseFinishedEmail } from "@formbricks/email"; @@ -115,7 +114,7 @@ export const POST = async (request: Request) => { }, notificationSettings: { path: ["alert", surveyId], - not: Prisma.JsonNull, + equals: true, }, }, select: { email: true },