Skip to content

Commit

Permalink
Merge pull request #253 from team-peekabook/fix/#252-patch-push=notif…
Browse files Browse the repository at this point in the history
…ication-text

[FIX] 푸시 알림 텍스트 잘못된 변수 수정
  • Loading branch information
yeseul106 authored May 29, 2024
2 parents 684681e + e2c0976 commit 28e4f17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/service/alarmService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/service/friendService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 28e4f17

Please sign in to comment.