diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-07-15 23:36:29 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-07-15 23:36:29 +0300 |
commit | 74a4926e83771cac21b6673f60f76ba6a634a242 (patch) | |
tree | 494f3938f37eb5e96a4e260cb52a8ead7f51228b /models/orgUser.js | |
parent | 41950ba4de1f0028d4b34fc9a90899c288e87b90 (diff) | |
download | wekan-74a4926e83771cac21b6673f60f76ba6a634a242.tar.gz wekan-74a4926e83771cac21b6673f60f76ba6a634a242.tar.bz2 wekan-74a4926e83771cac21b6673f60f76ba6a634a242.zip |
Use camelCase.
Thanks to xet7 !
Related #802
Diffstat (limited to 'models/orgUser.js')
-rw-r--r-- | models/orgUser.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/models/orgUser.js b/models/orgUser.js index 42bd548c..4c699f28 100644 --- a/models/orgUser.js +++ b/models/orgUser.js @@ -1,4 +1,4 @@ -OrgUser = new Mongo.Collection('org_user'); +OrgUser = new Mongo.Collection('orgUser'); /** * A Organization User in wekan @@ -14,18 +14,18 @@ OrgUser.attachSchema( // eslint-disable-next-line consistent-return autoValue() { if (this.isInsert && !this.isSet) { - return incrementCounter('counters', 'org_user_id', 1); + return incrementCounter('counters', 'orgUserId', 1); } }, }, - org_id: { + orgId: { /** * the organization id */ type: Number, optional: true, }, - user_id: { + userId: { /** * the user id */ @@ -72,8 +72,8 @@ OrgUser.attachSchema( if (Meteor.isServer) { // Index for Organization User. Meteor.startup(() => { - OrgUser._collection._ensureIndex({ org_id: -1 }); - OrgUser._collection._ensureIndex({ org_id: -1, user_id: -1 }); + OrgUser._collection._ensureIndex({ orgId: -1 }); + OrgUser._collection._ensureIndex({ orgId: -1, userId: -1 }); }); } |