Skip to content

Commit

Permalink
Update generateUtils.ts (#1130)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-egov authored Jul 24, 2024
1 parent ec43c6a commit 1fcb0b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utilities/project-factory/src/server/utils/generateUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function extractProperties(obj: any) {
}

function areBoundariesSame(existingBoundaries: any, currentBoundaries: any) {
if (!existingBoundaries || !currentBoundaries) return false;
if (existingBoundaries.length !== currentBoundaries.length) return false;
const existingSetOfBoundaries = new Set(existingBoundaries.map((exboundary: any) => JSON.stringify(extractProperties(exboundary))));
const currentSetOfBoundaries = new Set(currentBoundaries.map((currboundary: any) => JSON.stringify(extractProperties(currboundary))));
Expand Down Expand Up @@ -81,4 +82,4 @@ async function callGenerate(request: any, type: any) {



export { callGenerateIfBoundariesDiffer, callGenerate }
export { callGenerateIfBoundariesDiffer, callGenerate }

0 comments on commit 1fcb0b5

Please sign in to comment.