diff --git a/apps/server/src/modules/board/service/internal/board-context.service.ts b/apps/server/src/modules/board/service/internal/board-context.service.ts index 3a3471fce00..42725a45c36 100644 --- a/apps/server/src/modules/board/service/internal/board-context.service.ts +++ b/apps/server/src/modules/board/service/internal/board-context.service.ts @@ -18,6 +18,8 @@ export class BoardContextService { usersWithRoles = await this.getFromCourse(rootNode.context.id); else if (rootNode.context.type === BoardExternalReferenceType.User) { usersWithRoles = this.getFromUser(rootNode.context.id); + } else { + throw new Error(`Unknown context type: '${rootNode.context.type as string}'`); } return usersWithRoles;