Commit 103edb87 authored by 陈志良's avatar 陈志良

Merge branch 'Gabriel_0831' into SANDBOX

parents 5f6d3c8e 2bfa7e12
......@@ -483,7 +483,7 @@ router.get('/info/:fid/serachThreads', function(req, res, next) {
};
}
//获取子话题数据
forumThreadService.getAllThreadByFid(conditions, pageNo, pageSize, '-praise_count', function(err, results) {
forumThreadService.getAllThreadByFid(conditions, pageNo, pageSize, '-created', function(err, results) {
if (err) {
console.error(err);
res.json(returnCode.BUSY);
......
......@@ -642,7 +642,7 @@ function getAllThreadByFidHelp(conditions, pageNo, pageSize, sort, callback) {
path: 'comments',
options: {
where:{status:1},
limit: 5,
limit: 3,
sort: '-created'
},
select: 'from to created content level'
......
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