From 2dff8b3ae9c3fe28ff02762042d888a2f082c2ee Mon Sep 17 00:00:00 2001
From: Antonin Coquet <ext.sopra.acoquet@grandlyon.com>
Date: Tue, 18 May 2021 15:00:30 +0200
Subject: [PATCH] fix: minor fix and unused import

---
 src/structures/services/structures-search.service.ts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/structures/services/structures-search.service.ts b/src/structures/services/structures-search.service.ts
index 210fc8f91..bd6f53bee 100644
--- a/src/structures/services/structures-search.service.ts
+++ b/src/structures/services/structures-search.service.ts
@@ -4,7 +4,6 @@ import { structureDto } from '../dto/structure.dto';
 import { StructureDocument } from '../schemas/structure.schema';
 import { StructureSearchBody } from '../interfaces/structure-search-body.interface';
 import { StructureSearchResult } from '../interfaces/structure-search-response.interface';
-import { elementAt } from 'rxjs/operators';
 
 @Injectable()
 export class StructuresSearchService {
@@ -28,7 +27,7 @@ export class StructuresSearchService {
   }
 
   public async createStructureIndex(): Promise<any> {
-    return await this.elasticsearchService.indices.create({
+    return this.elasticsearchService.indices.create({
       index: this.index,
     });
   }
-- 
GitLab