Skip to content

Commit

Permalink
title, body 기본 값 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
JeongSH1 committed Dec 7, 2023
1 parent 9618a05 commit ebee1e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion noti.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ app.post('/save-token', async (req, res) => {

// FCM 메시지 전송 엔드포인트
app.post('/send-notification', async (req, res) => {
const { userId, title, body } = req.body;
const { userId, title = '무제', body = 'blank' } = req.body;

const token = await getTokenByUserId(userId);

Expand Down

0 comments on commit ebee1e4

Please sign in to comment.