Commit 0a3cc0c2 authored by strong's avatar strong

Merge branch 'remould_1214_api_optimize' into SANDBOX

parents 4b17b950 8336f4d0
......@@ -215,7 +215,7 @@ exports.getByConditions = function(conditions, callback) {
//根据ID获取文章
exports.getThreadById = function(tid, callback) {
ForumThread.findOne({_id: tid}, singleThreadFields).populate('from','uid mid nickName icon exp').populate('info','name icon').populate('share').exec(function(err, doc) {
ForumThread.findOne({_id: tid}).populate('from','uid mid nickName icon exp').populate('info','name icon').populate('share').exec(function(err, doc) {
if (err) {
console.error(err);
callback(err, null);
......@@ -369,7 +369,7 @@ exports.getThreadByIdNoLimit = function(tid, callback) {
var conditions = {
_id: tid
};
ForumThread.findOne(conditions,singleThreadFields).populate('from').populate('info').populate('share').exec(function(err, doc) {
ForumThread.findOne(conditions).populate('from').populate('info').populate('share').exec(function(err, doc) {
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