Skip to content

Commit

Permalink
add error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
overthestream committed Feb 8, 2024
1 parent a3241de commit dd51dba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/blurting/blurting.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export class BlurtingController {
async getBlurting(@Req() req: Request) {
const { id } = req.user as JwtPayload;
const user = await this.userService.findUserByVal('id', id);
if (user.group == null) throw new NotFoundException();
const blurtingPage = await this.blurtingService.getBlurting(
id,
user.group,
Expand Down

0 comments on commit dd51dba

Please sign in to comment.