Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

Commit

Permalink
Merge branch 'release-0.10.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
shinebayar-g committed Aug 19, 2019
2 parents eeccf20 + cc51ca5 commit f70bfca
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/messageQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ const initConsumer = async () => {

await channel.assertQueue('erxes-api:run-integrations-cronjob');

channel.consume('erxes-api:run-integrations-cronjob', async () => {
await handleRunCronMessage();
channel.ack();
channel.consume('erxes-api:run-integrations-cronjob', async msg => {
if (msg) {
await handleRunCronMessage();
channel.ack(msg);
}
});
} catch (e) {
debugBase(e.message);
Expand Down

0 comments on commit f70bfca

Please sign in to comment.