summaryrefslogtreecommitdiffstats
path: root/models/users.js
diff options
context:
space:
mode:
authorfloatinghotpot <rjfun.mobile@gmail.com>2016-01-06 16:59:25 +0800
committerfloatinghotpot <rjfun.mobile@gmail.com>2016-01-06 16:59:25 +0800
commit39e1cc02374b3a379de87bdcb95a7a343b698a05 (patch)
tree0f64c3428e1ee8a05060330c6c2e4fba01293788 /models/users.js
parent9bbdacc79a89667e0d6f1ed30c415e5350ad468b (diff)
downloadwekan-39e1cc02374b3a379de87bdcb95a7a343b698a05.tar.gz
wekan-39e1cc02374b3a379de87bdcb95a7a343b698a05.tar.bz2
wekan-39e1cc02374b3a379de87bdcb95a7a343b698a05.zip
Improve PR, adding more comments
Diffstat (limited to 'models/users.js')
-rw-r--r--models/users.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/models/users.js b/models/users.js
index 3bb7324f..89220a11 100644
--- a/models/users.js
+++ b/models/users.js
@@ -57,9 +57,9 @@ Users.helpers({
return _.contains(notifications, activityId);
},
- getEmailCache() {
- const {emailCache = []} = this.profile;
- return emailCache;
+ getEmailBuffer() {
+ const {emailBuffer = []} = this.profile;
+ return emailBuffer;
},
getInitials() {
@@ -153,18 +153,18 @@ Users.mutations({
};
},
- addEmailCache(text) {
+ addEmailBuffer(text) {
return {
$addToSet: {
- 'profile.emailCache': text,
+ 'profile.emailBuffer': text,
},
};
},
- clearEmailCache() {
+ clearEmailBuffer() {
return {
$set: {
- 'profile.emailCache': [],
+ 'profile.emailBuffer': [],
},
};
},