@tricoteuses/senat 2.20.32 → 2.20.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/loaders.js +5 -1
- package/package.json +1 -1
package/lib/loaders.js
CHANGED
|
@@ -188,8 +188,12 @@ export function* iterLoadSenatDocuments(dataDir, session, documentType, options
|
|
|
188
188
|
const lecturesSenat = lecture.lectures_assemblee.filter((lectureAssemblee) => lectureAssemblee.assemblee === "Sénat");
|
|
189
189
|
for (const lectureSenat of lecturesSenat) {
|
|
190
190
|
for (const document of lectureSenat[documentType]) {
|
|
191
|
+
const enrichedDocument = {
|
|
192
|
+
signet_dossier: dossierLegislatif["signet"],
|
|
193
|
+
...document,
|
|
194
|
+
};
|
|
191
195
|
const documentItem = {
|
|
192
|
-
item:
|
|
196
|
+
item: enrichedDocument
|
|
193
197
|
};
|
|
194
198
|
if (document.url) {
|
|
195
199
|
const documentName = path.parse(document.url).name;
|