유명현

EDIT: Delete text message (merged to flex)

......@@ -15,13 +15,7 @@ const multiCheckMamul = (client) => {
for (let i = 0, pending = Promise.resolve(); i < keywords.length; i++) {
pending = db.getUsersByKeyword(keywords[i]).then((userIds) => {
marketMultiSearch(keywords[i]).then((res) => {
client.multicast(userIds, [
{
type: "text",
text: `유저님의 ${keywords[i]} 매물 알림이 도착했어요!`,
},
setCarouselMessage(res, keywords[i]),
]);
client.multicast(userIds, [setCarouselMessage(res, keywords[i])]);
});
});
}
......@@ -32,16 +26,7 @@ const checkMamul = (client, userId) => {
db.getKeywordsByUserId(userId).then((keywords) => {
for (let i = 0, pending = Promise.resolve(); i < keywords.length; i++) {
pending = marketMultiSearch(keywords[i]).then((res) => {
client.multicast(
[userId],
[
{
type: "text",
text: `유저님의 ${keywords[i]} 매물 알림이 도착했어요!`,
},
setCarouselMessage(res, keywords[i]),
]
);
client.multicast([userId], [setCarouselMessage(res, keywords[i])]);
});
}
});
......