Commit 6d800b18 authored by strong's avatar strong

Merge branch 'bugfix_0520_subthread_limit' into SANDBOX

parents 8db3f65a 988df642
...@@ -819,8 +819,8 @@ function getSubThreads(doc, sort, callback) { ...@@ -819,8 +819,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