lrf %!s(int64=2) %!d(string=hai) anos
pai
achega
69c3c5c325
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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:禁用