Skip to content

Commit

Permalink
turn of subschema _id
Browse files Browse the repository at this point in the history
  • Loading branch information
viet nguyen committed Jan 14, 2024
1 parent 52c5edf commit f49cd8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/db/AreaSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const polygonSchema = new mongoose.Schema({
type: [[[Number]]], // Array of arrays of arrays of numbers
required: true
}
}, {
_id: false
})

const ChangeRecordMetadata = new Schema<ChangeRecordMetadataType>({
Expand Down
2 changes: 1 addition & 1 deletion src/db/utils/jobs/CragGeojson/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function exportLeafCrags (): Promise<void> {
})
features.push(pointFeature)
}
stream.write(JSON.stringify(featureCollection(features)))
stream.write(JSON.stringify(featureCollection(features)) + os.EOL)
stream.close()
}

Expand Down

0 comments on commit f49cd8e

Please sign in to comment.