Skip to content

Commit a5c6d72

Browse files
committed
update webhook follow up
1 parent 9dd69d5 commit a5c6d72

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

services/followUpService.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -824,19 +824,7 @@ class FollowUpService {
824824
phone: memberByPhone.phone,
825825
});
826826
} else {
827-
const option = this._detectOption(reply, journey.currentStage);
828-
if (option === 1) action = await this._handleOption1(journey, firstName, memberByPhone.phone);
829-
else if (option === 2) action = await this._handleOption2(journey, firstName, memberByPhone.phone);
830-
else if (option === 3) action = await this._handleOption3(journey, firstName, memberByPhone.phone);
831-
else if (
832-
journey.currentStage === 2 ||
833-
member?.whatsappConversationStage === 'prayer_requested'
834-
) {
835-
await this._handlePrayerRequest(member, memberByPhone.phone, reply);
836-
action = 'prayer_submitted';
837-
} else {
838-
action = 'free_text';
839-
}
827+
action = 'unmapped_reply';
840828
}
841829

842830
journey.replies.push({

0 commit comments

Comments
 (0)