Skip to content

Commit

Permalink
delete console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
folland87 committed Jun 13, 2024
1 parent 530d77f commit a318c67
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/jobs/opendata/fr_esr_paysage_laureats_all.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export default async function exportFrEsrPaysageLaureatAll() {
},

]).toArray();
// console.log(`Exporting ${data.length} relations for dataset ${dataset}`, data[0].websites);
const json = data.map(e => {
const wikidata = e.relatedObject.identifiers?.filter((i) => (i.type === 'wikidata'))
.sort((a, b) => a?.startDate?.localeCompare(b?.startDate)).map((i) => i.value).join('|') || null;
Expand Down Expand Up @@ -112,7 +111,6 @@ export default async function exportFrEsrPaysageLaureatAll() {

}
});
console.log(json[0]);
const session = client.startSession();
await session.withTransaction(async () => {
await db.collection('opendata').deleteMany({ dataset });
Expand Down

0 comments on commit a318c67

Please sign in to comment.