mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 17:16:28 +02:00
fix: reverse args
This commit is contained in:
@@ -87,7 +87,7 @@ federationController.analytics = async function (req, res) {
|
||||
};
|
||||
|
||||
federationController.errors = async function (req, res) {
|
||||
const ids = await db.getSortedSetRevRangeByScore('ap.errors', 0, -1, '-inf', Date.now());
|
||||
const ids = await db.getSortedSetRevRangeByScore('ap.errors', 0, -1, Date.now(), '-inf');
|
||||
const payloads = await db.mget(ids.map(id => `ap.errors:${id}`));
|
||||
const errors = ids.map((id, idx) => {
|
||||
return { id, payload: payloads[idx] };
|
||||
|
||||
Reference in New Issue
Block a user