Skip to content

Commit

Permalink
delete double
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouhadoun committed Jun 24, 2024
1 parent d5f1f31 commit 7a2a0d4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/api/consumers/export-to-exploitation-db-consumer.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,7 @@ export default async function exportToExploitationDB({data}) {

// Set to store the legacy address ID to avoid duplicates
const addressLegacyIDSet = new Set()

// Clean collections
// Delete all data related to the district (legacy and banID)
await deleteAllLegacyDataRelatedToCOG(cog)


Check failure on line 100 in lib/api/consumers/export-to-exploitation-db-consumer.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Trailing spaces not allowed.
// Check if the district has data to export
// To-fix: use the district configuration instead to check if the district has to be exported
const totalCommonToponymRecords = await CommonToponym.count({
Expand Down

0 comments on commit 7a2a0d4

Please sign in to comment.