From 60ac08413a79636091972aecf286edab34e4a509 Mon Sep 17 00:00:00 2001 From: talha Date: Thu, 26 Oct 2023 20:44:35 +0500 Subject: [PATCH] Replaced INDEX_NOT_EXIST with IndexNotExist --- packages/components/nodes/vectorstores/Milvus/Milvus_Upsert.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/nodes/vectorstores/Milvus/Milvus_Upsert.ts b/packages/components/nodes/vectorstores/Milvus/Milvus_Upsert.ts index ca69cb39531..40afe9a4824 100644 --- a/packages/components/nodes/vectorstores/Milvus/Milvus_Upsert.ts +++ b/packages/components/nodes/vectorstores/Milvus/Milvus_Upsert.ts @@ -252,7 +252,7 @@ class MilvusUpsert extends Milvus { collection_name: this.collectionName }) - if (descIndexResp.status.error_code === ErrorCode.INDEX_NOT_EXIST) { + if (descIndexResp.status.error_code === ErrorCode.IndexNotExist) { const resp = await this.client.createIndex({ collection_name: this.collectionName, field_name: this.vectorField,