mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 10:19:51 -06:00
fix: notification settings not working correctly (#3246)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com> Co-authored-by: Johannes <johannes@formbricks.com>
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user