Skip to content

Commit

Permalink
correct import numero commune_deleguee
Browse files Browse the repository at this point in the history
  • Loading branch information
fufeck committed Jan 14, 2025
1 parent 9145d15 commit 19d5362
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/api/src/lib/utils/csv.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ function extractData(rows: Row[]): {
nomAlt: toponymeAlt,
positions: [],
parcelles: numeroRows[0].parsedValues.cad_parcelles,
communeDeleguee:
numeroRows[0].rawValues.commune_deleguee_insee || null,
createdAt: new Date(),
updatedAt: new Date(),
};
Expand Down
1 change: 1 addition & 0 deletions apps/api/src/modules/numeros/numero.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ export class NumeroService {
}),
parcelles: rawNumero.parcelles || [],
certifie: rawNumero.certifie || false,
communeDeleguee: rawNumero.communeDeleguee,
...(rawNumero.updatedAt && { updatedAt: rawNumero.updatedAt }),
...(rawNumero.createdAt && { createdAt: rawNumero.createdAt }),
}));
Expand Down

0 comments on commit 19d5362

Please sign in to comment.