We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef0d53d commit 34165b3Copy full SHA for 34165b3
1 file changed
packages/api/src/routers/board.ts
@@ -143,6 +143,13 @@ export const boardRouter = createTRPCRouter({
143
},
144
);
145
146
+ if (!result) {
147
+ throw new TRPCError({
148
+ message: `Board with public ID ${input.boardPublicId} not found`,
149
+ code: "NOT_FOUND",
150
+ });
151
+ }
152
+
153
// Generate presigned URLs for workspace member avatars
154
const workspaceWithAvatarUrls = result.workspace
155
? {
0 commit comments