fix: #13397, null values in category sync list

This commit is contained in:
Julian Lam
2025-05-08 13:55:42 -04:00
parent 401ff797c9
commit 26e6a22278

View File

@@ -0,0 +1,12 @@
'use strict';
const db = require('../../database');
module.exports = {
name: 'Fix null values in category synchronization list',
timestamp: Date.UTC(2025, 4, 8),
method: async () => {
const cids = await db.getSortedSetMembers('categories:cid');
await db.sortedSetsRemove(cids.map(cid => `followRequests:cid.${cid}`), 'null');
},
};