From ec37f5480a88aa13b5c1297bb5597fbcbd61a8c6 Mon Sep 17 00:00:00 2001 From: Nick Meinhold Date: Mon, 2 Feb 2026 09:29:37 +1100 Subject: [PATCH] fix(api): include name and slug in workspace byId response (#347) The GET /workspaces/{id} endpoint was missing the workspace's name and slug fields because they weren't included in the column selection. Fixes #346 Co-authored-by: Claude Opus 4.5 --- packages/db/src/repository/workspace.repo.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/db/src/repository/workspace.repo.ts b/packages/db/src/repository/workspace.repo.ts index dd1e6c52..b1199421 100644 --- a/packages/db/src/repository/workspace.repo.ts +++ b/packages/db/src/repository/workspace.repo.ts @@ -185,6 +185,8 @@ export const getByPublicIdWithMembers = ( columns: { id: true, publicId: true, + name: true, + slug: true, showEmailsToMembers: true, }, with: {