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) {
data.groupNames.forEach(function (groupName) {
cache.del(data.uid + ':' + groupName);
});
if (data && data.groupNames) {
data.groupNames.forEach(function (groupName) {
cache.del(data.uid + ':' + groupName);
});
}
});
Groups.isMember = function (uid, groupName, callback) {

Loading…
Cancel
Save