유명현

EDIT: replyMessage changed to PushMessage

1 -const setKeywordsFlexMessage = require("../message/setKeywordsFlexMessage") 1 +const setKeywordsFlexMessage = require("../message/setKeywordsFlexMessage");
2 2
3 const db = require("../../apis/database"); 3 const db = require("../../apis/database");
4 4
5 const checkKeywords = (client, event) => { 5 const checkKeywords = (client, event) => {
6 db.getKeywordsByUserId(event.source.userId).then((keywords) => { 6 db.getKeywordsByUserId(event.source.userId).then((keywords) => {
7 flexMessage = setKeywordsFlexMessage(keywords); 7 flexMessage = setKeywordsFlexMessage(keywords);
8 - client.replyMessage(event.replyToken, flexMessage) 8 + client.pushMessage(event.source.userId, flexMessage);
9 - }) 9 + });
10 }; 10 };
11 11
12 module.exports = { checkKeywords }; 12 module.exports = { checkKeywords };
......