fix: handle missing board in board router

This commit is contained in:
Henry
2026-02-04 22:56:17 +00:00
parent ef0d53db8f
commit 34165b390f

View File

@@ -143,6 +143,13 @@ export const boardRouter = createTRPCRouter({
},
);
if (!result) {
throw new TRPCError({
message: `Board with public ID ${input.boardPublicId} not found`,
code: "NOT_FOUND",
});
}
// Generate presigned URLs for workspace member avatars
const workspaceWithAvatarUrls = result.workspace
? {