Skip to content

Commit

Permalink
(hel-679) fix type capacite (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
schlaifa authored Jan 17, 2025
1 parent 31178ab commit e040d4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ describe("La comparaison des établissements médico sociaux", () => {
numéroFiness: "100000000",
socialReason: "établissement territorial MS 1",
type: "Médico-social",
capacite: "40",
capacite: 40,
commune: "NANTUA",
departement: "AIN",
realisationActivite: 8000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export class TypeOrmComparaisonLoader implements ComparaisonLoader {
type: resultat.domaine,
commune: resultat.commune,
departement: resultat.departement,
capacite: resultat.capacite_total,
capacite: resultat.capacite_total ? Number(resultat.capacite_total) : null,
realisationActivite: resultat.taux_realisation_activite === 'NA' ? 'NA' : this.transformInRate(resultat.taux_realisation_activite, 1),
acceuilDeJour: resultat.taux_occupation_accueil_de_jour === 'NA' ? 'NA' : this.transformInRate(resultat.taux_occupation_accueil_de_jour, 1),
hebergementPermanent: resultat.taux_occupation_en_hebergement_permanent === 'NA' ? 'NA' : this.transformInRate(resultat.taux_occupation_en_hebergement_permanent, 1),
Expand Down

0 comments on commit e040d4c

Please sign in to comment.