From 25a2e9b8120292190eb0f16d39b79a88858a5116 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 9 Mar 2015 19:29:51 -0400 Subject: [PATCH] we just need the group members :trollface: --- src/notifications.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/notifications.js b/src/notifications.js index 5beed15f9c..3aafdb346d 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -207,12 +207,12 @@ var async = require('async'), Notifications.pushGroup = function(notification, groupName, callback) { callback = callback || function() {}; - groups.get(groupName, {}, function(err, groupObj) { - if (err || !groupObj || !Array.isArray(groupObj.members) || !groupObj.members.length) { + groups.getMembers(groupName, 0, -1, function(err, members) { + if (err || !Array.isArray(members) || !members.length) { return callback(err); } - Notifications.push(notification, groupObj.members, callback); + Notifications.push(notification, members, callback); }); };