diff --git a/reference-adapters/sms-adapter/src/main/java/org/egov/works/config/Constants.java b/reference-adapters/sms-adapter/src/main/java/org/egov/works/config/Constants.java index 1693251c1d..169757f321 100644 --- a/reference-adapters/sms-adapter/src/main/java/org/egov/works/config/Constants.java +++ b/reference-adapters/sms-adapter/src/main/java/org/egov/works/config/Constants.java @@ -45,7 +45,6 @@ public class Constants { public static final String CONTRACTS_ACCEPT_CREATOR_LOCALIZATION_CODE = "CONTRACTS_NOTIFICATION_TO_CREATOR_WORKFLOW_ACCEPT_ACTION"; //Project service Constants - public static final String PROJECT_ID_CODE = "$.Project.*.projectNumber"; public static final String PROJECT_NAME_CODE ="$.Project.*.name"; public static final String PROJECT_NAME = "projectName"; public static final String PROJECT_NUMBER_CODE = "$.Project.*.projectNumber"; diff --git a/reference-adapters/sms-adapter/src/main/java/org/egov/works/util/MeasurementServiceUtil.java b/reference-adapters/sms-adapter/src/main/java/org/egov/works/util/MeasurementServiceUtil.java index fcad1ecf84..ee657febeb 100644 --- a/reference-adapters/sms-adapter/src/main/java/org/egov/works/util/MeasurementServiceUtil.java +++ b/reference-adapters/sms-adapter/src/main/java/org/egov/works/util/MeasurementServiceUtil.java @@ -101,7 +101,7 @@ private String getProjectDetails(RequestInfo requestInfo, String tenantId, Strin List projectNumber = new ArrayList<>(); try { - projectNumber = JsonPath.read(projectRes, PROJECT_NUMBER); + projectNumber = JsonPath.read(projectRes, PROJECT_NUMBER_CODE); } catch (Exception e) { throw new CustomException(PARSING_ERROR_CODE, PARSING_ERROR_MSG); }