Skip to content

Commit

Permalink
Merge pull request #214 from TeamSobokSobok/feat/#213
Browse files Browse the repository at this point in the history
fix: add await to message send
  • Loading branch information
rycando committed Sep 2, 2022
2 parents 6e97cca + 4ae9779 commit cafea20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/service/pillService.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ module.exports = {
},
token: deviceToken.deviceToken,
};
admin.messaging().send(message);
await admin.messaging().send(message);
} else {
let body = `${username[0].username}님께서 약을 보냈습니다.`;

Expand All @@ -192,7 +192,7 @@ module.exports = {
},
token: deviceToken.deviceToken,
};
admin
await admin
.messaging()
.send(message)
.catch(function (error) {
Expand Down

0 comments on commit cafea20

Please sign in to comment.