유명현

EDIT: replyMessage changed to PushMessage

const setKeywordsFlexMessage = require("../message/setKeywordsFlexMessage")
const setKeywordsFlexMessage = require("../message/setKeywordsFlexMessage");
const db = require("../../apis/database");
const checkKeywords = (client, event) => {
db.getKeywordsByUserId(event.source.userId).then((keywords) => {
flexMessage = setKeywordsFlexMessage(keywords);
client.replyMessage(event.replyToken, flexMessage)
})
db.getKeywordsByUserId(event.source.userId).then((keywords) => {
flexMessage = setKeywordsFlexMessage(keywords);
client.pushMessage(event.source.userId, flexMessage);
});
};
module.exports = { checkKeywords };
\ No newline at end of file
module.exports = { checkKeywords };
......