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

111

parent 4f5c4967
......@@ -210,7 +210,7 @@ exports.getByConditions = function(conditions, callback) {
//根据ID获取文章
exports.getThreadById = function(tid, callback) {
ForumThread.findOne(conditions, singleThreadFields).populate('from','uid mid nickName exp').populate('info','name icon').populate('share').exec(function(err, doc) {
ForumThread.findOne({_id: tid}, singleThreadFields).populate('from','uid mid nickName exp').populate('info','name icon').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