From 434f276fa6271b05a59934fe20676e4f2f07df6c Mon Sep 17 00:00:00 2001 From: Kiran K Date: Tue, 8 Oct 2024 17:05:55 +0530 Subject: [PATCH] update --- apps/web/lib/api/workspaces.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/web/lib/api/workspaces.ts b/apps/web/lib/api/workspaces.ts index 738c57860f..2f7b4c825b 100644 --- a/apps/web/lib/api/workspaces.ts +++ b/apps/web/lib/api/workspaces.ts @@ -143,12 +143,12 @@ export async function deleteWorkspaceAdmin( }), ]); - const redisLinks = defaultDomainLinks.map((link) => ({ - ...link, - projectId: LEGAL_WORKSPACE_ID, - })); - - const updateLinkRedisResponse = await linkCache.mset(redisLinks); + const updateLinkRedisResponse = await linkCache.mset( + defaultDomainLinks.map((link) => ({ + ...link, + projectId: LEGAL_WORKSPACE_ID, + })), + ); // update all default domain links to the legal workspace const updateLinkPrismaResponse = await prisma.link.updateMany({