chen 4 gadi atpakaļ
vecāks
revīzija
917c9e8bb1
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      app/service/intelligentFollow.js

+ 3 - 2
app/service/intelligentFollow.js

@@ -54,9 +54,10 @@ class IntelligentFollowService extends CrudService {
     }
     if (data.creditStatus) {
       match.creditStatus = data.creditStatus;
-    } else {
-      match.creditStatus = { $ne: '1' };
     }
+    // else {
+    //   match.creditStatus = { $ne: '1' };
+    // }
     const skip = Number.parseInt(data.skip) || 1;
     const limit = Number.parseInt(data.limit) || 10;
     const total = await this.model.countDocuments(match);