From cfdd4ec164e4a894fa8ddfbf2d8e27824f7435d4 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 15 Jan 2015 10:55:10 -0500 Subject: [PATCH] Revert "missed one, ping @EisFrei" This reverts commit 2ed6b78cc5325fe676960b04ff760c0ca92eb289. --- src/groups.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/groups.js b/src/groups.js index 797a5b1ba3..a10acab287 100644 --- a/src/groups.js +++ b/src/groups.js @@ -428,12 +428,7 @@ var async = require('async'), tasks.push(async.apply(db.setAdd, 'group:' + data.name + ':members', data.ownerUid)); } - async.parallel(tasks, function(err) { - plugins.fireHook('action:group.create', { - name: data.name - }); - callback(err); - }); + async.parallel(tasks, callback); }); }; @@ -569,10 +564,7 @@ var async = require('async'), }, next); }); } - ], function(err) { - plugins.fireHook('action:group.') - callback(err); - }); + ], callback); }; Groups.join = function(groupName, uid, callback) { @@ -637,7 +629,7 @@ var async = require('async'), return callback(err); } - plugins.fireHook('action:group.leave', { + plugins.fireHook('action:groups.leave', { groupName: groupName, uid: uid });