We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3f732c commit bff43a9Copy full SHA for bff43a9
src/jobs/sirene/get-changes.js
@@ -112,6 +112,7 @@ export const getEstablishmentChanges = async (element) => {
112
if (!establishment) return [];
113
114
const periods = establishment.periodesEtablissement || [];
115
+ const changes = [];
116
117
for (const periodPair of periodPairsGenerator(periods)) {
118
const { previousPeriod, currentPeriod } = periodPair;
@@ -128,10 +129,6 @@ export const getEstablishmentChanges = async (element) => {
128
129
changeEffectiveDate: currentPeriod.dateDebut,
130
});
131
}
- const pairChanges = (periodPair);
132
- changes.push(...pairChanges);
133
134
-
135
136
return changes;
137
};
0 commit comments