Merge pull request #1136 from siddiqss/bugfix/build-error-index-not-exist-issue-1135

Build error fixed (TS)
This commit is contained in:
Henry Heng
2023-10-27 18:34:47 +01:00
committed by GitHub
@@ -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,