mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
Add accumulator for userEditClientCallbacks
This commit is contained in:
parent
83bb43ab46
commit
50dd3ccece
1 changed files with 4 additions and 0 deletions
|
@ -84,6 +84,10 @@ Template[getTemplate('user_edit')].events({
|
|||
});
|
||||
}
|
||||
|
||||
update = userEditClientCallbacks.reduce(function(result, currentFunction) {
|
||||
return currentFunction(user, result);
|
||||
}, update);
|
||||
|
||||
Meteor.users.update(user._id, {
|
||||
$set: update
|
||||
}, function(error){
|
||||
|
|
Loading…
Add table
Reference in a new issue