瀏覽代碼

fix build

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 1 年之前
父節點
當前提交
448f495f6b
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      server/src/collections/collections.service.ts

+ 4 - 4
server/src/collections/collections.service.ts

@@ -234,15 +234,15 @@ export class CollectionsService {
         let count: number | string;
 
         try {
-          const res = await this.count({
+          const countRes = await this.count({
             collection_name: name,
           });
-          count = res.data;
+          count = countRes.data;
         } catch (error) {
-          const res = await this.getCollectionStatistics({
+          const collectionStatisticsRes = await this.getCollectionStatistics({
             collection_name: name,
           });
-          count = res.data.row_count;
+          count = collectionStatisticsRes.data.row_count;
         }
 
         data.push({