Skip to content

Commit

Permalink
Replaced INDEX_NOT_EXIST with IndexNotExist
Browse files Browse the repository at this point in the history
  • Loading branch information
siddiqss committed Oct 26, 2023
1 parent 6844011 commit 60ac084
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

1 comment on commit 60ac084

@nobody4t
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong. INDEX_NOT_EXIST should be OK, why the replacement here.
I fail to yarn build.

Please sign in to comment.