Commit a3a696f2 authored by strong's avatar strong

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

parent 988df642
...@@ -819,7 +819,7 @@ function getSubThreads(doc, sort, callback) { ...@@ -819,7 +819,7 @@ function getSubThreads(doc, sort, callback) {
} else { } else {
var lastResult = results[2]; var lastResult = results[2];
lastResult.subThreads.docTotal = results[1] || 0; lastResult.subThreads.docTotal = results[1] || 0;
lastResult.subThreads.total = results[0]; lastResult.subThreads.total = results[0].size();
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