Commit 988df642 authored by strong's avatar strong

通过单独count和distinct的方式获取帖子列表的参与人数

parent 0674469f
...@@ -818,8 +818,8 @@ function getSubThreads(doc, sort, callback) { ...@@ -818,8 +818,8 @@ function getSubThreads(doc, sort, callback) {
callback(err); callback(err);
} else { } else {
var lastResult = results[2]; var lastResult = results[2];
lastResult.subThreads.docTotal = result[1] || 0; lastResult.subThreads.docTotal = results[1] || 0;
lastResult.subThreads.total = result[0]; lastResult.subThreads.total = results[0];
callback(null, lastResult); callback(null, lastResult);
} }
}); });
......
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