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

Commit

Permalink
update: 변경된 알림 entity에 맞추어 알림 트리거를 수정하라
Browse files Browse the repository at this point in the history
  • Loading branch information
kaaang committed Feb 18, 2024
1 parent 9a08233 commit 560b212
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/comment/comment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ export class CommentService {

const notification = new NotificationEntity();
notification.notificationReceiver = invitation.member;
notification.notificationType = 'COMMENT';
notification.notificationContent =
NotificationService.createNotificationContent('LIKE', user.nickname);
notification.notificationItemId = rule.id;
notification.notificationSender = user;
notification.notificationTargetType = 'RULE';
notification.notificationTargetId = rule.id;
notification.notificationAction = 'COMMENT';
await notification.save();
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/signature/signature.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ export class SignatureService {
// Todo: 좋아요를 했다가 해제한 경우에 알림을 어떻게 처리할 것인가?
const notification = new NotificationEntity();
notification.notificationReceiver = signature.user;
notification.notificationType = 'LIKE';
notification.notificationContent =
NotificationService.createNotificationContent('LIKE', loginUser.nickname);
notification.notificationItemId = signature.id;
notification.notificationSender = loginUser;
notification.notificationTargetType = 'SIGNATURE';
notification.notificationTargetId = signature.id;
notification.notificationAction = 'LIKE';
await notification.save();

return signature;
Expand Down

0 comments on commit 560b212

Please sign in to comment.