Skip to content

Commit

Permalink
redundance IDs but future-proof
Browse files Browse the repository at this point in the history
  • Loading branch information
viet nguyen committed Jan 20, 2024
1 parent 840d151 commit 5020534
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/db/utils/jobs/CragGeojson/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ async function exportLeafCrags (): Promise<void> {
id: ancestorArray[ancestorArray.length - 2],
name: pathTokens[doc.pathTokens.length - 2]
}
}, {
id: metadata.area_id.toUUID().toString()
})
features.push(pointFeature)
}
Expand Down Expand Up @@ -125,6 +127,8 @@ async function exportCragGroups (): Promise<void> {
name: doc.name,
children: doc.childAreaList.map(({ uuid, name, leftRightIndex }) => (
{ id: uuid.toUUID().toString(), name, lr: leftRightIndex }))
}, {
id: doc.uuid.toUUID().toString()
})
features.push(polygonFeature)
}
Expand Down

0 comments on commit 5020534

Please sign in to comment.