change to .exists

This commit is contained in:
Baris Usakli
2018-10-26 14:31:30 -04:00
parent d88a8464c4
commit 12f3f56b01
4 changed files with 4 additions and 4 deletions

View File

@@ -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) {