mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 16:41:21 +01:00
perf: '-inf' faster
This commit is contained in:
@@ -264,7 +264,7 @@ Actors.prune = async () => {
|
|||||||
|
|
||||||
const days = parseInt(meta.config.activitypubUserPruneDays, 10);
|
const days = parseInt(meta.config.activitypubUserPruneDays, 10);
|
||||||
const timestamp = Date.now() - (1000 * 60 * 60 * 24 * days);
|
const timestamp = Date.now() - (1000 * 60 * 60 * 24 * days);
|
||||||
const uids = await db.getSortedSetRangeByScore('usersRemote:lastCrawled', 0, -1, 0, timestamp);
|
const uids = await db.getSortedSetRangeByScore('usersRemote:lastCrawled', 0, -1, '-inf', timestamp);
|
||||||
if (!uids.length) {
|
if (!uids.length) {
|
||||||
winston.info('[actors/prune] No remote users to prune, all done.');
|
winston.info('[actors/prune] No remote users to prune, all done.');
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user