From fa0328fe35618137c3a6cc0f40090a2389c59ec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 14 Feb 2018 12:33:19 -0500 Subject: [PATCH] fix my copy paste fail --- src/upgrades/1.7.6/notification_types.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/upgrades/1.7.6/notification_types.js b/src/upgrades/1.7.6/notification_types.js index d56e1d3324..d8d7636b9c 100644 --- a/src/upgrades/1.7.6/notification_types.js +++ b/src/upgrades/1.7.6/notification_types.js @@ -14,11 +14,11 @@ module.exports = { function (config, next) { db.setObject('config', { notificationType_upvote: config.notificationType_upvote || 'notification', - 'notificationType_new-topic': config.notificationType_upvote || 'notification', - 'notificationType_new-reply': config.notificationType_upvote || config.sendPostNotifications || 'notification', - notificationType_follow: config.notificationType_upvote || 'notification', - 'notificationType_new-chat': config.notificationType_upvote || config.sendChatNotifications || 'notification', - 'notificationType_group-invite': config.notificationType_upvote || 'notification', + 'notificationType_new-topic': config['notificationType_new-topic'] || 'notification', + 'notificationType_new-reply': config['notificationType_new-reply'] || config.sendPostNotifications || 'notification', + notificationType_follow: config.notificationType_follow || 'notification', + 'notificationType_new-chat': config['notificationType_new-chat'] || config.sendChatNotifications || 'notification', + 'notificationType_group-invite': config['notificationType_group-invite'] || 'notification', }, next); }, ], callback);