Skip to content

Commit

Permalink
Merge pull request #31 from annuaire-entreprises-data-gouv-fr/fix-500
Browse files Browse the repository at this point in the history
fix activite_principale null
  • Loading branch information
XavierJp authored Nov 8, 2024
2 parents 50db785 + c0273bf commit c3c0a9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"dev": "nodemon index.ts",
"start": "node dist/index.js",
"test": "jest --runInBand",
"lint": "eslint src/**/*",
"lint": "npx eslint src/**/*",
"build": "tsc"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/clients/ig/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ const mapToDomainObject = (r: IGResponse, siren: Siren) => {
nomComplet,
etat: r.etat === 'ACTIF' ? 'A' : 'C',
libelleNatureJuridique,
activitePrincipale: r.activite_naf.code,
libelleActivitePrincipale: r.activite_naf.libelle,
activitePrincipale: r.activite_naf?.code || '',
libelleActivitePrincipale: r.activite_naf?.libelle || '',
dateCreation: '',
siege: null,
association: {
Expand Down

0 comments on commit c3c0a9e

Please sign in to comment.