summaryrefslogtreecommitdiffstats
path: root/models/org.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-07-15 23:36:29 +0300
committerLauri Ojansivu <x@xet7.org>2019-07-15 23:36:29 +0300
commit74a4926e83771cac21b6673f60f76ba6a634a242 (patch)
tree494f3938f37eb5e96a4e260cb52a8ead7f51228b /models/org.js
parent41950ba4de1f0028d4b34fc9a90899c288e87b90 (diff)
downloadwekan-74a4926e83771cac21b6673f60f76ba6a634a242.tar.gz
wekan-74a4926e83771cac21b6673f60f76ba6a634a242.tar.bz2
wekan-74a4926e83771cac21b6673f60f76ba6a634a242.zip
Use camelCase.
Thanks to xet7 ! Related #802
Diffstat (limited to 'models/org.js')
-rw-r--r--models/org.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/models/org.js b/models/org.js
index 3d41a436..207bfad7 100644
--- a/models/org.js
+++ b/models/org.js
@@ -14,7 +14,7 @@ Org.attachSchema(
// eslint-disable-next-line consistent-return
autoValue() {
if (this.isInsert && !this.isSet) {
- return incrementCounter('counters', 'org_id', 1);
+ return incrementCounter('counters', 'orgId', 1);
}
},
},
@@ -65,9 +65,9 @@ Org.attachSchema(
optional: true,
max: 255,
},
- zip_code: {
+ zipCode: {
/**
- * zip_code of the organization
+ * zipCode of the organization
*/
type: String,
optional: true,
@@ -81,9 +81,9 @@ Org.attachSchema(
optional: true,
max: 255,
},
- billing_email: {
+ billingEmail: {
/**
- * billing_email of the organization
+ * billingEmail of the organization
*/
type: String,
optional: true,