lrf преди 2 години
родител
ревизия
69c3c5c325
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/model/race/matchAddress.js

+ 1 - 1
app/model/race/matchAddress.js

@@ -4,7 +4,7 @@ const metaPlugin = require('naf-framework-mongoose-free/lib/model/meta-plugin');
 
 // 赛事场地
 const match_address = {
-  belong_id: { type: String, required: true, zh: '归属id', ref: 'Race.User', getProp: ['name'] }, // 用户表中的名称
+  belong_id: { type: String, required: true, zh: '归属id', ref: 'Race.User', getProp: [ 'name' ] }, // 用户表中的名称
   name: { type: String, required: true, zh: '名称' }, //
   remark: { type: String, required: false, zh: '备注' }, //
   is_use: { type: String, required: false, default: '0', zh: '是否使用' }, // 0:启用,1:禁用