Commit dbe9adac authored by 刘文胜's avatar 刘文胜

111

parent d46a2de5
......@@ -165,6 +165,9 @@ exports.FetchThreadToAboutMe=function(){
var condition={};
ForumThread.find(condition).count(function(err,count){
if(count){
if(count> 5000){
count = 5000;
}
_.forEach(_.range((count / pageSize) + 1),function(o,pageNO){
tasks.push(function(cb){
FetchThreadToAboutMeByPage(pageNO,pageSize,count,condition,cb);
......@@ -183,6 +186,9 @@ exports.FetchCommentToAboutMe=function(){
var condition={level:1};
ForumComment.find(condition).count(function(err,count){
if(count){
if(count> 5000){
count = 5000;
}
_.forEach(_.range((count / pageSize) + 1),function(o,pageNO){
tasks.push(function(cb){
FetchCommentToAboutMeByPage(pageNO,pageSize,count,condition,cb);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment