Skip to content

Commit

Permalink
Merge pull request #343 from mission-apprentissage/fix/formations-and…
Browse files Browse the repository at this point in the history
…-etablissement-iframe

[Serveur] Répare les Iframes formations et établissements
  • Loading branch information
yohanngab authored Oct 30, 2024
2 parents 87e0c38 + 269971a commit 6ffbef4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/dao/formations.dao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ export const findFormationByIntitule = async (intitule: string): Promise<Partial
"formations.etablissement_gestionnaire_enseigne",
"formations.etablissement_gestionnaire_siret",
"formations.etablissement_id",
"formations_campagnes.campagne_id",
])
.where(sql<string>`catalogue_data->>'onisep_intitule'`, "ilike", `%${intitule}%`)
.where("formations.deleted_at", "is", null)
Expand Down Expand Up @@ -251,6 +252,7 @@ export const findFormationByUai = async (uai: string): Promise<Partial<Formation
"formations.etablissement_gestionnaire_enseigne",
"formations.etablissement_gestionnaire_siret",
"formations.etablissement_id",
"formations_campagnes.campagne_id",
])
.where(sql<string>`catalogue_data->>'etablissement_formateur_uai'`, "ilike", `%${uai}%`)
.where("formations.deleted_at", "is", null)
Expand Down

0 comments on commit 6ffbef4

Please sign in to comment.