Skip to content

Commit b631b1e

Browse files
SR20290919SR20290919
authored andcommitted
shifting commonAPI URL properties to common_ci
1 parent 7e5eafe commit b631b1e

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/main/environment/common_ci.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ spring.datasource.url=@env.DATABASE_URL@
22
spring.datasource.username=@env.DATABASE_USERNAME@
33
spring.datasource.password=@env.DATABASE_PASSWORD@
44
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
5-
common-api-url=@env.COMMON_API@
5+
6+
common-api-url-searchuserbyid=@env.COMMON_API@beneficiary/searchUserByID
7+
common-api-url-searchBeneficiary=@env.COMMON_API@beneficiary/searchBeneficiary
8+
69
callcentre-server-ip=@env.CALLCENTRE_SERVER_IP@
710
### Redis IP
811
spring.data.redis.host=localhost

src/main/java/com/iemr/inventory/service/visit/VisitServiceImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ public List<BeneficiaryModel> getBeneficiaryListByIDs(String benrID, String auth
109109
String jwtTokenFromCookie = cookieUtil.getJwtTokenFromCookie(requestHeader);
110110
header.put("Cookie", "Jwttoken=" + jwtTokenFromCookie);
111111

112-
result = httpUtils.post(ConfigProperties.getPropertyByName("common-api-url-searchuserbyid")
113-
.replace(COMMON_BASE_URL, identityBaseURL), benrID, header);
112+
result = httpUtils.post(ConfigProperties.getPropertyByName("common-api-url-searchuserbyid"), benrID, header);
114113
OutputResponse identityResponse = inputMapper.gson().fromJson(result, OutputResponse.class);
115114
if (identityResponse.getStatusCode() != 200) {
116115
throw new InventoryException("Invalid BeneficiaryID");

src/main/resources/application.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ logging.level.com.iemr=DEBUG
2323

2424
spring.jpa.show-sql=true
2525
enableCTIUserCreation=true
26-
common-api-url-searchuserbyid=COMMON_BASE_URLbeneficiary/searchUserByID
27-
common-api-url-searchBeneficiary=COMMON_BASE_URLbeneficiary/searchBeneficiary
26+
2827

2928
spring.main.allow-bean-definition-overriding=true
3029

0 commit comments

Comments
 (0)