|
8 | 8 | GetModerationWithDetails,
|
9 | 9 | type GetModerationWithDetailsDto,
|
10 | 10 | } from "@~/moderations.repository";
|
11 |
| -import { GetFicheOrganizationById } from "@~/organizations.lib/usecase"; |
12 | 11 | import {
|
13 | 12 | GetDomainCount,
|
| 13 | + GetOrganizationById, |
14 | 14 | GetOrganizationMember,
|
15 | 15 | GetOrganizationMembersCount,
|
16 | 16 | } from "@~/organizations.repository";
|
@@ -49,10 +49,29 @@ export async function loadModerationPageVariables(
|
49 | 49 |
|
50 | 50 | //
|
51 | 51 |
|
52 |
| - const get_fiche_organization_by_id = GetFicheOrganizationById({ |
53 |
| - pg, |
| 52 | + const get_organization_by_id = GetOrganizationById(pg, { |
| 53 | + columns: { |
| 54 | + cached_activite_principale: true, |
| 55 | + cached_adresse: true, |
| 56 | + cached_categorie_juridique: true, |
| 57 | + cached_code_officiel_geographique: true, |
| 58 | + cached_code_postal: true, |
| 59 | + cached_enseigne: true, |
| 60 | + cached_est_active: true, |
| 61 | + cached_etat_administratif: true, |
| 62 | + cached_libelle_activite_principale: true, |
| 63 | + cached_libelle_categorie_juridique: true, |
| 64 | + cached_libelle_tranche_effectif: true, |
| 65 | + cached_libelle: true, |
| 66 | + cached_nom_complet: true, |
| 67 | + cached_tranche_effectifs: true, |
| 68 | + created_at: true, |
| 69 | + id: true, |
| 70 | + siret: true, |
| 71 | + updated_at: true, |
| 72 | + }, |
54 | 73 | });
|
55 |
| - const organization_fiche = await get_fiche_organization_by_id( |
| 74 | + const organization_fiche = await get_organization_by_id( |
56 | 75 | moderation.organization_id,
|
57 | 76 | );
|
58 | 77 |
|
|
0 commit comments