From e72767088f88d8c48d4f94d3dc5fc0efa8a14b6f Mon Sep 17 00:00:00 2001 From: Ananda Date: Mon, 16 Dec 2024 11:57:45 +0100 Subject: [PATCH] feat: maj des formations similaires --- server/src/queries/getFormationSimilaire.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/queries/getFormationSimilaire.ts b/server/src/queries/getFormationSimilaire.ts index 1972e7d..d6476cc 100644 --- a/server/src/queries/getFormationSimilaire.ts +++ b/server/src/queries/getFormationSimilaire.ts @@ -141,6 +141,7 @@ export async function getFormationsSimilaire( ) .select("formationEtablissement.formationId as formationIdBase") .select("cfd") + .where("formation.id", "!=", formationId) .as("results"), (join) => join.onRef("formationSimilaire.formationRelatedId", "=", "results.formationIdBase") )