Skip to content
Snippets Groups Projects
Commit 2dff8b3a authored by Antonin COQUET's avatar Antonin COQUET
Browse files

fix: minor fix and unused import

parent 115ab1d1
No related branches found
No related tags found
3 merge requests!96release V1.10.0,!83Dev,!80Fix/elasticsearch optimize
...@@ -4,7 +4,6 @@ import { structureDto } from '../dto/structure.dto'; ...@@ -4,7 +4,6 @@ import { structureDto } from '../dto/structure.dto';
import { StructureDocument } from '../schemas/structure.schema'; import { StructureDocument } from '../schemas/structure.schema';
import { StructureSearchBody } from '../interfaces/structure-search-body.interface'; import { StructureSearchBody } from '../interfaces/structure-search-body.interface';
import { StructureSearchResult } from '../interfaces/structure-search-response.interface'; import { StructureSearchResult } from '../interfaces/structure-search-response.interface';
import { elementAt } from 'rxjs/operators';
@Injectable() @Injectable()
export class StructuresSearchService { export class StructuresSearchService {
...@@ -28,7 +27,7 @@ export class StructuresSearchService { ...@@ -28,7 +27,7 @@ export class StructuresSearchService {
} }
public async createStructureIndex(): Promise<any> { public async createStructureIndex(): Promise<any> {
return await this.elasticsearchService.indices.create({ return this.elasticsearchService.indices.create({
index: this.index, index: this.index,
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment