Skip to content

Commit

Permalink
test again
Browse files Browse the repository at this point in the history
  • Loading branch information
folland87 committed Jan 29, 2025
1 parent 1756307 commit da87499
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jobs/sirene/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ export default async function monitorSiren(job) {
}

const siretStockFromPaysage = await getSiretStockFromPaysage();
const siretUpdatesMap = await fetchEstablishmentUpdates(from, until);
// const siretUpdatesMap = await fetchEstablishmentUpdates(from, until);
const sirenUpdatesMap = await fetchLegalUnitUpdates(from, until);


const hasLegalUnitUpdates = siretStockFromPaysage
.filter(element => element.type === "siren" && sirenUpdatesMap.has(element.siren))
.filter(element => element.type === "legalUnit" && sirenUpdatesMap.has(element.siren))

const hasEstablishmentUpdates = siretStockFromPaysage
.filter(element => element.type === "siret" && siretUpdatesMap.has(element.siret))
.filter(element => element.type === "establishment")

const updates = []
for (const element of hasLegalUnitUpdates) {
Expand Down

0 comments on commit da87499

Please sign in to comment.