fix: delete old topic tags

This commit is contained in:
Barış Soner Uşaklı
2021-10-04 20:12:11 -04:00
parent 9455e5b2b9
commit a70c69fa83

View File

@@ -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,