From a158671d419dde8b18f7bd47ee5a86c3169a10fc Mon Sep 17 00:00:00 2001 From: Imen Chermiti Date: Fri, 22 Dec 2023 09:17:45 +0100 Subject: [PATCH] feat: fix search by corse departement --- src/n8n/utils/elastic/enterprise.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/n8n/utils/elastic/enterprise.ts b/src/n8n/utils/elastic/enterprise.ts index 1cf4810a..8d5d4aba 100644 --- a/src/n8n/utils/elastic/enterprise.ts +++ b/src/n8n/utils/elastic/enterprise.ts @@ -217,7 +217,6 @@ export const mappings = { domaineActivite: { type: "keyword" }, codeCommuneEtablissement: { type: "keyword" }, - departementEtablissement: { type: "keyword" }, departement: { type: "keyword" }, categorieEntreprise: { type: "keyword"}, @@ -306,10 +305,6 @@ export const mapEnterprise = (enterprise: BceEtablissement) => { .trim() .replace(/ /, " "); - const departementEtablissement = enterprise.eta_codePostalEtablissement.slice( - 0, - +enterprise.eta_codePostalEtablissement.slice(0, 2) > 95 ? 3 : 2 - ); const domaineActivite = codeActivitePrincipale?.slice(0, 2); @@ -396,7 +391,6 @@ export const mapEnterprise = (enterprise: BceEtablissement) => { codeCommuneEtablissement: enterprise.eta_codeCommuneEtablissement || enterprise.eta_codeCommune2Etablissement, - departementEtablissement, departement:enterprise.Departement, etatAdministratifEtablissement: