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), ),