lrf пре 2 година
родитељ
комит
6d6ab8b656
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      app/model/shop/goodsRate.js

+ 2 - 2
app/model/shop/goodsRate.js

@@ -2,12 +2,12 @@
 const Schema = require('mongoose').Schema;
 const metaPlugin = require('naf-framework-mongoose-free/lib/model/meta-plugin');
 
-const reply = {
+const reply = [{
   content: { type: String, zh: '内容' },
   time: { type: String, zh: '时间' },
   file: { type: Array, zh: '图片' },
   reply: { type: String, zh: '店家回复' },
-};
+}];
 
 // 商品评价
 const goodsRate = {