added a new method called isSetMembers takes in an array of values to
test if they are members of a set
This commit is contained in:
barisusakli
2014-03-11 14:43:08 -04:00
parent 29ad8d2582
commit 76037a5f14
3 changed files with 43 additions and 13 deletions

View File

@@ -217,13 +217,7 @@ var db = require('./database'),
};
Categories.hasReadCategory = function(cid, uid, callback) {
db.isSetMember('cid:' + cid + ':read_by_uid', uid, function(err, hasRead) {
if(err) {
return callback(false);
}
callback(hasRead);
});
db.isSetMember('cid:' + cid + ':read_by_uid', uid, callback);
};
Categories.getRecentReplies = function(cid, uid, count, callback) {