Skip to content

Node.js based forum software built for the modern web

fix: delete follower/followingCount as well

Barış Soner Uşaklıd72b0d161631
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);
}