fix: delete old topic tags

isekai-main
Barış Soner Uşaklı 3 years ago
parent 9455e5b2b9
commit a70c69fa83

@ -28,6 +28,7 @@ module.exports = {
topicsWithTags.map(t => `topic:${t.tid}`),
topicsWithTags.map(t => ({ tags: t.tags.join(',') }))
);
await db.deleteAll(tids.map(tid => `topic:${tid}:tags`));
progress.incr(tids.length);
}, {
batch: 500,

Loading…
Cancel
Save