From 4f12886bfca17e8bb76afc58914ee4fbc459eaec Mon Sep 17 00:00:00 2001 From: Matti Nannt Date: Wed, 28 Jun 2023 15:35:41 +0200 Subject: [PATCH] Fix userId prefilling not working properly (#446) --- apps/web/app/api/v1/client/people/getOrCreate/route.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/app/api/v1/client/people/getOrCreate/route.ts b/apps/web/app/api/v1/client/people/getOrCreate/route.ts index 156949f689..1b3de716fa 100644 --- a/apps/web/app/api/v1/client/people/getOrCreate/route.ts +++ b/apps/web/app/api/v1/client/people/getOrCreate/route.ts @@ -20,6 +20,7 @@ export async function GET(req: Request): Promise { const person = await prisma.person.findFirst({ where: { + environmentId, attributes: { some: { attributeClass: {