Commit b1d02ca4 authored by 张淼's avatar 张淼

1

parent c1f30770
...@@ -43,6 +43,11 @@ var ForumThreadSchema = new Schema({ ...@@ -43,6 +43,11 @@ var ForumThreadSchema = new Schema({
icon: { //话题图标 icon: { //话题图标
type: String type: String
}, },
address: {//地址
country:{type: String,default:''},
province:{type: String,default:''},
city:{type: String,default:''},
},
order_idx: { //论坛排序 order_idx: { //论坛排序
type: Number, type: Number,
require: true, require: true,
......
...@@ -152,7 +152,7 @@ function populateComment(doc, callback){ ...@@ -152,7 +152,7 @@ function populateComment(doc, callback){
var asyncTasks = []; var asyncTasks = [];
doc.comments.forEach(function(comment){ doc.comments.forEach(function(comment){
asyncTasks.push(function(callback) { asyncTasks.push(function(callback) {
ForumComment.populate(comment, {path:'from to', select:'uid nickName icon comments'} , function(err, c){ ForumComment.populate(comment, {path:'from to', select:'uid nickName icon displayName displayIcon comments'} , function(err, c){
if (err) { if (err) {
console.error(err); console.error(err);
callback(null, null); callback(null, 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