From 560b212c223c342aaba78361bcd330f770109390 Mon Sep 17 00:00:00 2001 From: kaaang Date: Sun, 18 Feb 2024 18:55:06 +0900 Subject: [PATCH] =?UTF-8?q?update:=20=EB=B3=80=EA=B2=BD=EB=90=9C=20?= =?UTF-8?q?=EC=95=8C=EB=A6=BC=20entity=EC=97=90=20=EB=A7=9E=EC=B6=94?= =?UTF-8?q?=EC=96=B4=20=EC=95=8C=EB=A6=BC=20=ED=8A=B8=EB=A6=AC=EA=B1=B0?= =?UTF-8?q?=EB=A5=BC=20=EC=88=98=EC=A0=95=ED=95=98=EB=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/comment/comment.service.ts | 8 ++++---- src/signature/signature.service.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/comment/comment.service.ts b/src/comment/comment.service.ts index 139f6b7..0ed863f 100644 --- a/src/comment/comment.service.ts +++ b/src/comment/comment.service.ts @@ -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(); } } diff --git a/src/signature/signature.service.ts b/src/signature/signature.service.ts index 8e859e4..24196a0 100644 --- a/src/signature/signature.service.ts +++ b/src/signature/signature.service.ts @@ -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;