Browse Source

fix build

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 1 year ago
parent
commit
448f495f6b
1 changed files with 4 additions and 4 deletions
  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({