From 2982dfe3ffa3b15f41f2bea497f16c255063e2c7 Mon Sep 17 00:00:00 2001
From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com>
Date: Mon, 18 Jan 2021 15:06:45 +0100
Subject: [PATCH] fix(structure): remove unecessary sort for search

---
 src/structures/structures.service.ts | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/structures/structures.service.ts b/src/structures/structures.service.ts
index d829616ad..f0359c498 100644
--- a/src/structures/structures.service.ts
+++ b/src/structures/structures.service.ts
@@ -155,14 +155,6 @@ export class StructuresService {
           ],
         },
       },
-      sort: [
-        {
-          'data-fr.properties.commune_str.sort': {
-            order: 'asc',
-            unmapped_type: 'string',
-          },
-        },
-      ],
     };
     return new Promise((resolve, reject) => {
       this.httpService
@@ -178,6 +170,7 @@ export class StructuresService {
           },
           (err) => {
             Logger.error(`Request error: ${err.config.url}`, 'StructureService - search');
+            Logger.error(err);
           }
         );
     });
-- 
GitLab