Skip to content

Commit

Permalink
Ashish egov patch 2 (#921)
Browse files Browse the repository at this point in the history
* Update index.ts

* Update campaignApis.ts
  • Loading branch information
ashish-egov committed Jun 17, 2024
1 parent 25d8636 commit a072ff9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/project-factory/src/server/api/campaignApis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ const createBatchRequest = async (request: any, batch: any[], mobileNumberRowNum
includeDeleted: true
};
logger.info("Individual search to validate the mobile no initiated");
const response = await httpRequest(config.host.healthIndividualHost + "health-individual/v1/_search", searchBody, params);
const response = await httpRequest(config.host.healthIndividualHost + config.paths.healthIndividualSearch, searchBody, params);

if (!response) {
throwError("COMMON", 400, "INTERNAL_SERVER_ERROR", "Error occurred during user search while validating mobile number.");
Expand Down
1 change: 1 addition & 0 deletions utilities/project-factory/src/server/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ const config = {
boundaryRelationshipCreate: "boundary-service/boundary-relationships/_create",
mdmsV2SchemaSearch: "mdms-v2/schema/v1/_search",
mdms_v2_search: "mdms-v2/v2/_search",
healthIndividualSearch: process.env.EGOV_HEALTH_INDIVIDUAL_SEARCH || "health-individual/v1/_search",
},
// Values configuration
values: {
Expand Down

0 comments on commit a072ff9

Please sign in to comment.