Skip to content

Commit e246e3c

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

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

services/followUpService.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,15 @@ class FollowUpService {
665665
reply
666666
);
667667

668-
lastOutbound.conversationStage = 'replied';
669-
await lastOutbound.save();
668+
await WhatsappActivity.findOneAndUpdate(
669+
{
670+
_id: lastOutbound._id,
671+
conversationStage: 'awaiting_reply'
672+
},
673+
{
674+
$set: { conversationStage: 'completed' }
675+
}
676+
);
670677

671678
return result ? { action: result.action } : null;
672679
}

0 commit comments

Comments
 (0)