Skip to content

Commit d29522e

Browse files
committed
switched normalize phone to resolvereal phone6
1 parent e246e3c commit d29522e

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

services/followUpService.js

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -657,25 +657,27 @@ class FollowUpService {
657657
return null;
658658
}
659659

660+
console.log(lastOutbound, 'last outbound activity awaiting reply');
661+
660662
// Handle absent reminder outside journey
661663
if (lastOutbound.messageType === 'absent_reminder') {
662-
const result = await this._handleAbsentReminderReply(
663-
memberByPhone,
664-
cleanedPhone,
665-
reply
666-
);
667-
668-
await WhatsappActivity.findOneAndUpdate(
669-
{
670-
_id: lastOutbound._id,
671-
conversationStage: 'awaiting_reply'
672-
},
673-
{
674-
$set: { conversationStage: 'completed' }
675-
}
676-
);
677-
678-
return result ? { action: result.action } : null;
664+
// const result = await this._handleAbsentReminderReply(
665+
// memberByPhone,
666+
// cleanedPhone,
667+
// reply
668+
// );
669+
670+
// await WhatsappActivity.findOneAndUpdate(
671+
// {
672+
// _id: lastOutbound._id,
673+
// conversationStage: 'awaiting_reply'
674+
// },
675+
// {
676+
// $set: { conversationStage: 'completed' }
677+
// }
678+
// );
679+
680+
// return result ? { action: result.action } : null;
679681
}
680682

681683
// console.log(`Active journey found: ${!!journey}`);

0 commit comments

Comments
 (0)