Browse Source

fix throw

nameczz 4 năm trước cách đây
mục cha
commit
248cbc28bb
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      server/src/schema/schema.service.ts

+ 4 - 0
server/src/schema/schema.service.ts

@@ -19,11 +19,13 @@ export class SchemaService {
 
   async createIndex(data: CreateIndexReq) {
     const res = await this.milvusClient.createIndex(data);
+    throwErrorFromSDK(res);
     return res;
   }
 
   async describeIndex(data: DescribeIndexReq) {
     const res = await this.milvusClient.describeIndex(data);
+    throwErrorFromSDK(res.status);
     return res;
   }
 
@@ -35,11 +37,13 @@ export class SchemaService {
 
   async getIndexState(data: GetIndexStateReq) {
     const res = await this.milvusClient.getIndexState(data);
+    throwErrorFromSDK(res.status);
     return res;
   }
 
   async getIndexBuildProgress(data: GetIndexBuildProgressReq) {
     const res = await this.milvusClient.getIndexBuildProgress(data);
+    throwErrorFromSDK(res.status);
     return res;
   }
 }