mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
closes #1191
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user