Replaced INDEX_NOT_EXIST with IndexNotExist

This commit is contained in:
talha
2023-10-26 20:44:35 +05:00
parent 6844011d48
commit 60ac08413a
@@ -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,