Skip to content

Commit

Permalink
add missing else clause
Browse files Browse the repository at this point in the history
  • Loading branch information
uidp committed Jun 12, 2024
1 parent d5cdb3e commit 69b5a91
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 69b5a91

Please sign in to comment.