유명현

EDIT: checkMamul also send keyword info

...@@ -24,11 +24,20 @@ const multiCheckMamul = (client) => { ...@@ -24,11 +24,20 @@ const multiCheckMamul = (client) => {
24 24
25 const checkMamul = (client, userId) => { 25 const checkMamul = (client, userId) => {
26 db.getKeywordsByUserId(userId).then((keywords) => { 26 db.getKeywordsByUserId(userId).then((keywords) => {
27 - for (let i = 0, pending = Promise.resolve(); i< keywords.length; i++) { 27 + for (let i = 0, pending = Promise.resolve(); i < keywords.length; i++) {
28 pending = marketMultiSearch(keywords[i]).then((res) => { 28 pending = marketMultiSearch(keywords[i]).then((res) => {
29 - client.pushMessage(userId, setCarouselMessage(res)); 29 + client.multicast(
30 + [userId],
31 + [
32 + {
33 + type: "text",
34 + text: `키워드: ${keywords[i]}`,
35 + },
36 + setCarouselMessage(res),
37 + ]
38 + );
30 }); 39 });
31 - }; 40 + }
32 }); 41 });
33 }; 42 };
34 43
......