From 59973c66cfe61e6371b2dc9d5b3671db2ccdcc22 Mon Sep 17 00:00:00 2001 From: Kiran K Date: Mon, 14 Oct 2024 14:33:08 +0530 Subject: [PATCH] fix the test --- apps/web/app/api/domains/[domain]/primary/route.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/app/api/domains/[domain]/primary/route.ts b/apps/web/app/api/domains/[domain]/primary/route.ts index f9902c27f6..1b4fd28e38 100644 --- a/apps/web/app/api/domains/[domain]/primary/route.ts +++ b/apps/web/app/api/domains/[domain]/primary/route.ts @@ -21,6 +21,9 @@ export const POST = withWorkspace( data: { primary: true, }, + include: { + registeredDomain: true, + }, }), // Set all other domains as not primary