var models = require("../../models")
var isValidDateString = require("../../utils/isValidDateString")
var getSinceMaxDateObject = require("../../utils/getSinceMaxDateObject")
module.exports = function* (sinceDate,maxDate,limit){
    if(sinceDate && !isValidDateString(sinceDate)) return Promise.reject("invalid-sinceDate")
    if(maxDate && !isValidDateString(maxDate)) return Promise.reject("invalid-maxDate")
    if(isFinite(limit)){
        if(limit < 1) return Promise.reject("invalid-limit")
    } else limit = 100;
    var users = yield models.users.find({isSuspended:true}).select("_id")
    users = users.map(user => user._id);
    var posts = yield models.posts.find({
        user:{$ne:users},
        createdAt:getSinceMaxDateObject(sinceDate,maxDate)
    }).populate("app user files").sort('-createdAt');
    return posts;
}
@@ -622,16 +622,56 @@
  =%3E 
-user._id
+%7Breturn %7Buser:user._id%7D%7D);%0A    console.log(users
 );%0A 
@@ -723,24 +723,18 @@
     
-user:%7B$ne
+$nor
 :users
-%7D
 ,%0A  

fix bug