diff --git a/src/structures/services/structures-search.service.ts b/src/structures/services/structures-search.service.ts index 210fc8f9167e1080d2d5e4cc7c608b04ca818455..bd6f53beef23ba2148b6325e9ac713ecb5e75af1 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, }); }