Skip to content

Commit

Permalink
split by : for survey service
Browse files Browse the repository at this point in the history
  • Loading branch information
SM4991 committed Mar 31, 2023
1 parent 1248b66 commit 7166d7c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,10 @@ public Mono<Mono<XMessage>> apply(FormManagerParams previousMeta) {
String serviceClass = getTransformerMetaDataValue(transformer, "serviceClass");
JSONObject user = null;
if (serviceClass.equalsIgnoreCase(SurveyService.class.getSimpleName())) {
String mobileNo = xMessage.getTo().getUserID().replace("ucipwa:", "");
user = surveyService.getUserByPhoneFromFederatedServers(hiddenFieldsStr, mobileNo);
String[] mobileNo = xMessage.getTo().getUserID().split(":");
if(mobileNo[1] != null && !mobileNo[1].isEmpty()) {
user = surveyService.getUserByPhoneFromFederatedServers(hiddenFieldsStr, mobileNo[1]);
}
} else {
user = userService.getUserByPhoneFromFederatedServers(
getTransformerMetaDataValue(transformer, "botId"),
Expand Down

0 comments on commit 7166d7c

Please sign in to comment.