瀏覽代碼

info表修改

ruifeng_liu 3 年之前
父節點
當前提交
3caa9f204e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/model/patent/patentinfo.js

+ 2 - 2
app/model/patent/patentinfo.js

@@ -4,10 +4,10 @@ const moment = require('moment');
 const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
 const { ObjectId } = require('mongoose').Types;
 
-const user = new Schema({
+const user = {
   id: { type: ObjectId, required: false, maxLength: 500 }, // 名称,
   name: { type: String, required: false, maxLength: 500 }, // 链接地址,
-});
+};
 
 // 专利信息表
 const patentinfo = {