Commit f2297f07 authored by 杨翌文's avatar 杨翌文

1

parent 529d532b
......@@ -100,6 +100,7 @@ router.get('/info/:fid/get', function(req, res, next) {
res.json(returnCode.BUSY);
} else {
var rs = {};
cosole.info(results);
rs.data = results[0];
rs.data.threadCount = results[1];
res.json(_.assign(rs, returnCode.SUCCESS));
......
......@@ -707,7 +707,7 @@ function getSubThreads(doc, sort, callback) {
if (sort) {
sortBy = sort;
}
ForumThread.find(conditions).populate('from', 'icon').sort(sortBy).exec(function(err, docs) {
ForumThread.find(conditions, subThreadFields).populate('from', 'icon').sort(sortBy).exec(function(err, docs) {
if (err) {
console.error(err);
callback(err, null);
......
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