From d72b0d161631011323a21f22dd8d34856b372a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 11 Oct 2019 18:54:33 -0400 Subject: [PATCH] fix: delete follower/followingCount as well --- src/upgrades/1.13.0/cleanup_old_notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upgrades/1.13.0/cleanup_old_notifications.js b/src/upgrades/1.13.0/cleanup_old_notifications.js index 26f2420003..dcc1f28a42 100644 --- a/src/upgrades/1.13.0/cleanup_old_notifications.js +++ b/src/upgrades/1.13.0/cleanup_old_notifications.js @@ -28,7 +28,7 @@ module.exports = { fields.push(field); } }); - ['profileviews', 'reputation', 'postcount', 'topiccount', 'lastposttime', 'banned'].forEach((field) => { + ['profileviews', 'reputation', 'postcount', 'topiccount', 'lastposttime', 'banned', 'followerCount', 'followingCount'].forEach((field) => { if (user[field] === 0) { fields.push(field); }