Commit 529d532b authored by 杨翌文's avatar 杨翌文

1

parent 8336f4d0
...@@ -167,18 +167,17 @@ router.get('/info/:fid/threads', function(req, res, next) { ...@@ -167,18 +167,17 @@ router.get('/info/:fid/threads', function(req, res, next) {
if (fid) { if (fid) {
async.waterfall([ async.waterfall([
function(callback) { function(callback) {
forumUserThreadControlService.getUserThreadControlById(user.getMobileUser(req), function(err, doc) {
if (err) {
callback(err, null);
} else {
if (doc) {
callback(null, doc);
} else {
callback(null, null); callback(null, null);
// forumUserThreadControlService.getUserThreadControlById(user.getMobileUser(req), function(err, doc) { }
// if (err) { }
// callback(err, null); });
// } else {
// if (doc) {
// callback(null, doc);
// } else {
// callback(null, null);
// }
// }
// });
} }
], function(err, result) { ], function(err, result) {
if (err) { if (err) {
......
...@@ -707,7 +707,7 @@ function getSubThreads(doc, sort, callback) { ...@@ -707,7 +707,7 @@ function getSubThreads(doc, sort, callback) {
if (sort) { if (sort) {
sortBy = sort; sortBy = sort;
} }
ForumThread.find(conditions, subThreadFields).populate('from', 'icon').sort(sortBy).exec(function(err, docs) { ForumThread.find(conditions).populate('from', 'icon').sort(sortBy).exec(function(err, docs) {
if (err) { if (err) {
console.error(err); console.error(err);
callback(err, null); 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