Browse Source

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

Thanks to justinr1234 and xet7 !

Related #802
Lauri Ojansivu 5 năm trước cách đây
mục cha
commit
75c84e3b5d
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  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
        */