Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
fix: 댓글 알림이 정상적으로 발생하지 않는 문제를 수정하라
Browse files Browse the repository at this point in the history
  • Loading branch information
kaaang committed Feb 18, 2024
1 parent 0627ed3 commit bac2212
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/signature/signature.comment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export class SignatureCommentService {
const user = await UserEntity.findOneOrFail({ where: { id: userId } });
const signature = await SignatureEntity.findOneOrFail({
where: { id: signatureId },
relations: { user: true },
});

if (!user || !signature) {
Expand All @@ -58,6 +59,7 @@ export class SignatureCommentService {

const parentComment = await SignatureCommentEntity.findOneOrFail({
where: { id: parentCommentId },
relations: { user: true },
});

if (!parentComment) throw new NotFoundException('404 Not Found');
Expand Down

0 comments on commit bac2212

Please sign in to comment.