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

Commit

Permalink
added debug message #789
Browse files Browse the repository at this point in the history
  • Loading branch information
batamar committed Jun 4, 2020
1 parent faadb12 commit 4c66844
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cronJobs/conversations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export const sendMessageEmail = async () => {
// new or open conversations
const conversations = await Conversations.newOrOpenConversation();

debugCrons(`Found ${conversations.length} conversations`);

for (const conversation of conversations) {
const customer = await Customers.findOne({ _id: conversation.customerId }).lean();

Expand Down

0 comments on commit 4c66844

Please sign in to comment.