Commit 6cfcabd5 authored by strong's avatar strong

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

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