Node.js based forum software built for the modern web
fix: delete old topic tags
Barış Soner Uşaklıa70c69fa835b
diff --git a/src/upgrades/1.18.0/topic_tags_refactor.js b/src/upgrades/1.18.0/topic_tags_refactor.jsindex c81e139bb3..5fd2218c49 100644--- a/src/upgrades/1.18.0/topic_tags_refactor.js+++ b/src/upgrades/1.18.0/topic_tags_refactor.js@@ -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,