Skip to content

Commit

Permalink
fix(formations): add campagne_id field in findFormation
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanngab committed Oct 30, 2024
1 parent 87e0c38 commit 269971a
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 269971a

Please sign in to comment.