Skip to content

Commit

Permalink
Merge branch 'HCMPRE-1788-project-creation-entity-persistence' of htt…
Browse files Browse the repository at this point in the history
…ps://github.com/egovernments/health-campaign-services into HCMPRE-1788-project-creation-entity-persistence
  • Loading branch information
ashish-egov committed Jan 15, 2025
2 parents 62a23b0 + 7bc6ebc commit a364bdf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions health-services/project-factory/src/server/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const getDBSchemaName = (dbSchema = "") => {
const config = {
batchSize:100,
cacheTime: 300,
retryUntilResourceCreationComplete:process.env.RETRY_TILL_RESOURCE_CREATION_COMPLETES || 100,
isProduction: process.env ? true : false,
token: "", // add default token if core services are not port forwarded
enableDynamicTemplateFor: process.env.ENABLE_DYNAMIC_TEMPLATE_FOR || "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ async function processCampaignMapping(messageObject: any) {
var completedResources: any = []
var resources = [];
for (const resourceDetailId of resourceDetailsIds) {
var retry = 75;
var retry: any = config?.retryUntilResourceCreationComplete;
while (retry--) {
const response = await searchResourceDetailsById(resourceDetailId, messageObject);
logger.info(`response for resourceDetailId: ${resourceDetailId}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3216,7 +3216,7 @@ const autoGenerateBoundaryCodes = async (
latLongData = result.latLongData;
boundaryData = result.updatedData;
}
const updatedBoundaryData = updateBoundaryData(boundaryData, hierarchy);
const updatedBoundaryData = updateBoundaryData(boundaryData, localizedHeadersOfBoundarySheet);
const modifiedBoundaryData = modifyBoundaryDataHeaders(
updatedBoundaryData,
hierarchy,
Expand Down

0 comments on commit a364bdf

Please sign in to comment.