From 53af9ec2e806c25a2933ca8440e3f8d21e74bcd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 8 Feb 2019 14:39:50 -0500 Subject: [PATCH] backport redis fix #7350 --- src/upgrades/1.10.2/fix_category_topic_zsets.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/upgrades/1.10.2/fix_category_topic_zsets.js b/src/upgrades/1.10.2/fix_category_topic_zsets.js index c9d67231ff..10bd049c0c 100644 --- a/src/upgrades/1.10.2/fix_category_topic_zsets.js +++ b/src/upgrades/1.10.2/fix_category_topic_zsets.js @@ -24,7 +24,8 @@ module.exports = { if (parseInt(topicData.pinned, 10) === 1) { return setImmediate(next); } - + + topicData.postcount = parseInt(topicData.postcount, 10) || 0; db.sortedSetAdd('cid:' + topicData.cid + ':tids:posts', topicData.postcount, tid, next); }, function (next) {