mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
another one
This commit is contained in:
@@ -396,7 +396,7 @@ Notes.prune = async () => {
|
||||
* - Post within is liked
|
||||
*/
|
||||
winston.info('[notes/prune] Starting scheduled pruning of topics');
|
||||
const start = 0;
|
||||
const start = '-inf';
|
||||
const stop = Date.now() - (1000 * 60 * 60 * 24 * 30); // 30 days; todo: make configurable?
|
||||
let tids = await db.getSortedSetRangeByScore('cid:-1:tids', 0, -1, start, stop);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user