Commit 12d75d09 authored by 杨翌文's avatar 杨翌文

减少populate

parent 1d245410
......@@ -736,9 +736,7 @@ function getAllThreadByFidHelp(conditions, pageNo, pageSize, sort, callback) {
if (sort) {
sortBy = sort;
}
ForumThread.find(conditions,listThreadFields).populate('from', 'uid mid nickName icon').populate('info', 'name icon pv_count').populate({
path: 'tag', select: 'title pv_count'
}).populate({
ForumThread.find(conditions,listThreadFields).populate('from', 'uid mid nickName icon').populate({
path: 'comments',
options: {
where:{status:1},
......
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