Showing
1 changed file
with
6 additions
and
6 deletions
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 }; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
12 | +module.exports = { checkKeywords }; | ... | ... |
-
Please register or login to post a comment