From e26ec85b5169b7b005869dcf67d4876941c7a2d2 Mon Sep 17 00:00:00 2001 From: Michael Silva Date: Tue, 25 Mar 2025 16:12:38 -0400 Subject: [PATCH] rootkey name fix --- apps/dashboard/lib/trpc/routers/key/updateRootKeyName.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/lib/trpc/routers/key/updateRootKeyName.ts b/apps/dashboard/lib/trpc/routers/key/updateRootKeyName.ts index f57c68ca20..b2e4680cf5 100644 --- a/apps/dashboard/lib/trpc/routers/key/updateRootKeyName.ts +++ b/apps/dashboard/lib/trpc/routers/key/updateRootKeyName.ts @@ -15,7 +15,7 @@ export const updateRootKeyName = t.procedure const key = await db.query.keys.findFirst({ where: (table, { eq, isNull, and }) => and( - eq(table.workspaceId, ctx.workspace.id), + eq(table.forWorkspaceId, ctx.workspace.id), eq(table.id, input.keyId), isNull(table.deletedAtM), ),