From e92beb903e88ba61d0e4f73e5af9b49ac592f836 Mon Sep 17 00:00:00 2001 From: yeseul106 <68415644+yeseul106@users.noreply.github.com> Date: Thu, 30 May 2024 03:42:09 +0900 Subject: [PATCH] =?UTF-8?q?v1.2.2=20=EB=B0=B0=ED=8F=AC=20(#254)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [CHORE] #249 푸시 알림 텍스트 변경 * #252 [FIX] 푸시 알림 텍스트 잘못된거 수정 --- src/service/alarmService.ts | 2 +- src/service/friendService.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service/alarmService.ts b/src/service/alarmService.ts index af73b00..d1f202a 100644 --- a/src/service/alarmService.ts +++ b/src/service/alarmService.ts @@ -156,7 +156,7 @@ const getAlarm = async (auth: number) => { async function sendPushNotification(receiverUser: any, senderUser: any) { if (receiverUser?.fcm_token) { const pushTitle = `📚 '${senderUser.nickname}'님이 새로운 책을 책장에 추가했어요!`; - const pushBody = `${receiverUser.nickname}님이 어떤 책을 읽었는지 지금 바로 알아보세요`; + const pushBody = `${senderUser.nickname}님이 어떤 책을 읽었는지 지금 바로 알아보세요`; const pushMessage = createPushMessage( receiverUser.fcm_token, diff --git a/src/service/friendService.ts b/src/service/friendService.ts index 862d11e..51917ab 100644 --- a/src/service/friendService.ts +++ b/src/service/friendService.ts @@ -96,7 +96,7 @@ const recommendBookToFriend = async ( if (receiverUser && senderUser && receiverUser.fcm_token) { const pushTitle = `⭐️ '${senderUser.nickname}'님이 당신에게 책을 추천했어요!`; - const pushBody = `${savedBook?.bookTitle}`; + const pushBody = `'${savedBook?.bookTitle}'`; const pushMessage = createPushMessage( receiverUser.fcm_token,