Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] 푸시 알림 텍스트 잘못된 변수 수정 #253

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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