Skip to content

Commit 5939168

Browse files
Merge pull request #247 from toarunmishra/3.3.0
IDENTITY_BASE_URL fix
2 parents 6ee70b2 + 5785c70 commit 5939168

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/main/java/com/iemr/common/service/beneficiary/IdentityBeneficiaryServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,9 @@ public String getIdentityResponse(String request, String auth, Boolean is1097) t
401401
if (auth != null) {
402402
header.put("Authorization", auth);
403403
}
404+
String baseUrl = is1097 ? identity1097BaseURL : identityBaseURL;
405+
String apiUrl = baseUrl + ConfigProperties.getPropertyByName("identity-api-url-benCreate");
404406

405-
String apiUrl = ConfigProperties.getPropertyByName("identity-api-url-benCreate")
406-
.replace(IDENTITY_BASE_URL, (is1097 ? identity1097BaseURL : identityBaseURL));
407407

408408
logger.info("Calling URL: {}", apiUrl);
409409
logger.info("Request Payload: {}", request);

src/main/resources/application.properties

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,8 @@ identity-api-url-getByPartialBenRegIdList =IDENTITY_BASE_URL/id/getByPartialBenR
115115
identity-api-url-getByPhoneNum =IDENTITY_BASE_URL/id/getByPhoneNum?phoneNum=
116116
identity-api-url-getByBenId =IDENTITY_BASE_URL/id/getByBenId?benId=
117117
identity-api-url-getByBenRegId =IDENTITY_BASE_URL/id/getByBenRegId?benRegId=
118-
IDENTITY_API_URL=https://amritdemo.piramalswasthya.org
119-
identity-api-url-benCreate=${IDENTITY_API_URL}/id/create
118+
identity-api-url-benCreate =IDENTITY_BASE_URL/id/create
120119
#identity-api-url-benCreate =IDENTITY_BASE_URL/id/create
121-
122120
identity-api-url-benEdit =IDENTITY_BASE_URL/id/edit
123121
identity-api-url-benEditEducationCommunity=IDENTITY_BASE_URL/id/editEducationOrCommunity
124122

0 commit comments

Comments
 (0)