mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
refactor: always returns array
This commit is contained in:
@@ -109,7 +109,6 @@ module.exports = function (User) {
|
||||
}
|
||||
|
||||
User.getPostIds = async function (uid, start, stop) {
|
||||
const pids = await db.getSortedSetRevRange(`uid:${uid}:posts`, start, stop);
|
||||
return Array.isArray(pids) ? pids : [];
|
||||
return await db.getSortedSetRevRange(`uid:${uid}:posts`, start, stop);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user