fix(core): update

This commit is contained in:
2023-08-29 11:15:22 +02:00
parent fc87fd7ab7
commit d6a291d8d4
4 changed files with 22 additions and 32 deletions

View File

@@ -18,7 +18,7 @@ export class FastPush {
async pushToIndex(indexName: string, docArray: any[], options?: FastPushOptions) {
if (docArray.length === 0) return;
const { body: indexExists } = await this.client.indices.exists({ index: indexName });
const indexExists = await this.client.indices.exists({ index: indexName });
if (indexExists) {
if (options?.deleteIndex) {