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

@@ -30,7 +30,7 @@ require('./diffs')(Posts);
require('./uploads')(Posts);
Posts.exists = function (pid, callback) {
db.isSortedSetMember('posts:pid', pid, callback);
db.exists('post:' + pid, callback);
};
Posts.getPidsFromSet = function (set, start, stop, reverse, callback) {