Skip to content

Commit

Permalink
SMS end to end flow related changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajjangid05 committed Aug 7, 2023
1 parent 16c174e commit 79308ec
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ public void accept(JsonNode botNode) {

JsonNode firstTransformer = botNode.findValues("transformers").get(0);

if (message != null && message.getProviderURI().equals("firebase") && message.getChannelURI().equals("web")) {
if (message != null && (message.getProviderURI().equals("firebase") && message.getChannelURI().equals("web"))
|| ((message.getProviderURI().equals("cdac") || message.getProviderURI().equals("gupshup")) && message.getChannelURI().equals("sms"))) {
if (firstTransformer.findValue("type") != null && firstTransformer.findValue("type").asText().equals(BotUtil.transformerTypeBroadcast)) {
try {
log.info("CampaignConsumer:broadcastNotificationChunkSize : " + broadcastNotificationChunkSize);
Expand Down

0 comments on commit 79308ec

Please sign in to comment.