Skip to content

Commit

Permalink
updated the delay for boundary relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
jagankumar-egov committed May 28, 2024
1 parent ea14472 commit 2e08528
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/genericApis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ async function createBoundaryRelationship(request: any, boundaryMap: Map<{ key:
flag = 0;
requestBody.BoundaryRelationship = boundary;
// Introducing a delay of 1 second
await new Promise(resolve => setTimeout(resolve, 1000));
await new Promise(resolve => setTimeout(resolve, config.boundary.boundaryRelationShipDelay));
try {
const response = await httpRequest(`${config.host.boundaryHost}${config.paths.boundaryRelationshipCreate}`, requestBody, {}, 'POST', undefined, undefined, true);

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 @@ -18,6 +18,7 @@ const config = {
generateDifferentTabsOnBasisOf: process.env.SPLIT_BOUNDARIES_ON || "ADMIN_DISTRITO",
// default configurable number of data of boundary type on which generate different tabs
numberOfBoundaryDataOnWhichWeSplit: process.env.SPLIT_BOUNDARIES_ON_LENGTH || "2",
boundaryRelationShipDelay: 3500
},
facility: {
facilityTab: process.env.FACILITY_TAB_NAME || "HCM_ADMIN_CONSOLE_FACILITIES",
Expand Down

0 comments on commit 2e08528

Please sign in to comment.