add check

v1.18.x
Barış Soner Uşaklı 7 years ago
parent be5c237388
commit 55b872fe3e

@ -367,9 +367,11 @@ module.exports = function (Groups) {
} }
pubsub.on('group:cache:del', function (data) { pubsub.on('group:cache:del', function (data) {
data.groupNames.forEach(function (groupName) { if (data && data.groupNames) {
cache.del(data.uid + ':' + groupName); data.groupNames.forEach(function (groupName) {
}); cache.del(data.uid + ':' + groupName);
});
}
}); });
Groups.isMember = function (uid, groupName, callback) { Groups.isMember = function (uid, groupName, callback) {

Loading…
Cancel
Save