Skip to content

Commit

Permalink
Boundary upload to have not generate boundary code if code is already…
Browse files Browse the repository at this point in the history
… filled to support migration (#1121)

* fixed target validate for different tabs not present

* resource activity persisting in db

* added timeout of 2 sec for boundary entity to persist

* Boundary upload  to have not generate boundary code if  code is already filled to support migration

* Update index.ts
  • Loading branch information
nitish-egov authored Jul 23, 2024
1 parent b1a5e58 commit f2cf0bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1610,7 +1610,7 @@ const autoGenerateBoundaryCodes = async (request: any, localizationMap?: any) =>
const modifiedBoundaryData = modifyBoundaryDataHeaders(updatedBoundaryData, hierarchy, localizationMap);
const [withBoundaryCode, withoutBoundaryCode] = modifyBoundaryData(modifiedBoundaryData, localizationMap);
const { mappingMap, countMap } = getCodeMappingsOfExistingBoundaryCodes(withBoundaryCode);
const childParentMap = getChildParentMap(withoutBoundaryCode);
const childParentMap = getChildParentMap([...withBoundaryCode,...withoutBoundaryCode]);
const boundaryMap = await getAutoGeneratedBoundaryCodesHandler(withoutBoundaryCode, childParentMap, mappingMap, countMap, request);
logger.info("Boundary Code Auto Generation Completed");
await createBoundaryEntities(request, boundaryMap);
Expand Down

0 comments on commit f2cf0bf

Please sign in to comment.