mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
change to .exists
This commit is contained in:
@@ -21,7 +21,7 @@ require('./recentreplies')(Categories);
|
||||
require('./update')(Categories);
|
||||
|
||||
Categories.exists = function (cid, callback) {
|
||||
db.isSortedSetMember('categories:cid', cid, callback);
|
||||
db.exists('category:' + cid, callback);
|
||||
};
|
||||
|
||||
Categories.getCategoryById = function (data, callback) {
|
||||
|
||||
Reference in New Issue
Block a user