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:
@@ -34,7 +34,7 @@ require('./bookmarks')(Topics);
|
||||
require('./merge')(Topics);
|
||||
|
||||
Topics.exists = function (tid, callback) {
|
||||
db.isSortedSetMember('topics:tid', tid, callback);
|
||||
db.exists('topic:' + tid, callback);
|
||||
};
|
||||
|
||||
Topics.getTopicsFromSet = function (set, uid, start, stop, callback) {
|
||||
|
||||
Reference in New Issue
Block a user