refactor: skip event report if not have any events
This commit is contained in:
parent
1b89c3b5a8
commit
f814691538
@ -368,7 +368,15 @@ async function checkFeedEventsNotify(
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
sendFeedEventsNotify(channel, events);
|
if (events.length === 0) {
|
||||||
|
logger.info(
|
||||||
|
'Skip send events report because not include any events in this channel',
|
||||||
|
channel.id
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
await sendFeedEventsNotify(channel, events);
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
concurrency: 5,
|
concurrency: 5,
|
||||||
|
Loading…
Reference in New Issue
Block a user