mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: delete old topic tags
This commit is contained in:
@@ -28,6 +28,7 @@ module.exports = {
|
|||||||
topicsWithTags.map(t => `topic:${t.tid}`),
|
topicsWithTags.map(t => `topic:${t.tid}`),
|
||||||
topicsWithTags.map(t => ({ tags: t.tags.join(',') }))
|
topicsWithTags.map(t => ({ tags: t.tags.join(',') }))
|
||||||
);
|
);
|
||||||
|
await db.deleteAll(tids.map(tid => `topic:${tid}:tags`));
|
||||||
progress.incr(tids.length);
|
progress.incr(tids.length);
|
||||||
}, {
|
}, {
|
||||||
batch: 500,
|
batch: 500,
|
||||||
|
|||||||
Reference in New Issue
Block a user