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

Commit

Permalink
removed return from for #789
Browse files Browse the repository at this point in the history
  • Loading branch information
batamar committed Jun 4, 2020
1 parent d414cb6 commit 1be71ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cronJobs/conversations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ export const sendMessageEmail = async () => {
});

if (!integration) {
return;
continue;
}

if (!customer || !customer.primaryEmail) {
return;
continue;
}

const brand = await Brands.findOne({ _id: integration.brandId }).lean();

if (!brand) {
return;
continue;
}

// user's last non answered question
Expand All @@ -42,7 +42,7 @@ export const sendMessageEmail = async () => {
const adminMessages = await ConversationMessages.getAdminMessages(conversation._id);

if (adminMessages.length < 1) {
return;
continue;
}

// generate admin unread answers
Expand Down

0 comments on commit 1be71ab

Please sign in to comment.