Skip to content

Commit bff43a9

Browse files
committed
fix siret pipeline
1 parent a3f732c commit bff43a9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/jobs/sirene/get-changes.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export const getEstablishmentChanges = async (element) => {
112112
if (!establishment) return [];
113113

114114
const periods = establishment.periodesEtablissement || [];
115+
const changes = [];
115116

116117
for (const periodPair of periodPairsGenerator(periods)) {
117118
const { previousPeriod, currentPeriod } = periodPair;
@@ -128,10 +129,6 @@ export const getEstablishmentChanges = async (element) => {
128129
changeEffectiveDate: currentPeriod.dateDebut,
129130
});
130131
}
131-
const pairChanges = (periodPair);
132-
changes.push(...pairChanges);
133132
}
134-
135-
136133
return changes;
137134
};

0 commit comments

Comments
 (0)