Skip to content

Commit

Permalink
Fix UserNotice
Browse files Browse the repository at this point in the history
  • Loading branch information
gyusang committed Sep 29, 2024
1 parent aa0ce54 commit 1ea164d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/notice/notice.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,10 @@ export class NoticeService {
notice,
},
});
if (userNotice == null) throw new NotFoundException('There is no userNotice with the user and notice');
return {
user,
notice,
userNotice,
userNotice: userNotice || undefined,
};
}

Expand Down

0 comments on commit 1ea164d

Please sign in to comment.