mirror of
https://github.com/wekan/wekan.git
synced 2026-01-28 12:16:10 +01:00
Improve PR, adding more comments
This commit is contained in:
parent
9bbdacc79a
commit
39e1cc0237
3 changed files with 32 additions and 26 deletions
|
|
@ -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': [],
|
||||
},
|
||||
};
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue