Browse Source

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

Thanks to justinr1234 and xet7 !

Related #802
Lauri Ojansivu 5 years ago
parent
commit
75c84e3b5d
2 changed files with 2 additions and 2 deletions
  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(
 Org.attachSchema(
   new SimpleSchema({
   new SimpleSchema({
-    id: {
+    _id: {
       /**
       /**
        * the organization id
        * the organization id
        */
        */

+ 1 - 1
models/orgUser.js

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