瀏覽代碼

[Fix id to _id](https://github.com/wekan/wekan/commit/2cedbcb9b334cd497874736bbb740a1d5c5acb6c#r34310594).

Thanks to justinr1234 and xet7 !

Related #802
Lauri Ojansivu 5 年之前
父節點
當前提交
75c84e3b5d
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      models/org.js
  2. 1 1
      models/orgUser.js

+ 1 - 1
models/org.js

@@ -5,7 +5,7 @@ Org = new Mongo.Collection('org');
  */
 Org.attachSchema(
   new SimpleSchema({
-    id: {
+    _id: {
       /**
        * the organization id
        */

+ 1 - 1
models/orgUser.js

@@ -5,7 +5,7 @@ OrgUser = new Mongo.Collection('orgUser');
  */
 OrgUser.attachSchema(
   new SimpleSchema({
-    id: {
+    _id: {
       /**
        * the organization user's id
        */