Skip to content
Snippets Groups Projects
Unverified Commit 75facda4 authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Fix codacy issues

parent 740e1c5d
No related branches found
No related tags found
No related merge requests found
...@@ -202,7 +202,7 @@ Template.pushNotificationsFlexTab.onCreated(function() { ...@@ -202,7 +202,7 @@ Template.pushNotificationsFlexTab.onCreated(function() {
break; break;
case 'hideUnreadStatus': case 'hideUnreadStatus':
case 'disableNotifications': case 'disableNotifications':
value = this.$('input[name='+ field +']:checked').val() ? '1' : '0'; value = this.$(`input[name=${ field }]:checked`).val() ? '1' : '0';
break; break;
default: default:
value = this.$(`input[name=${ field }]:checked`).val(); value = this.$(`input[name=${ field }]:checked`).val();
......
...@@ -84,7 +84,7 @@ RocketChat.models.Subscriptions.updateUnreadAlertById = function(_id, unreadAler ...@@ -84,7 +84,7 @@ RocketChat.models.Subscriptions.updateUnreadAlertById = function(_id, unreadAler
RocketChat.models.Subscriptions.updateDisableNotificationsById = function(_id, disableNotifications) { RocketChat.models.Subscriptions.updateDisableNotificationsById = function(_id, disableNotifications) {
const query = { const query = {
_id: _id _id
}; };
const update = { const update = {
...@@ -98,7 +98,7 @@ RocketChat.models.Subscriptions.updateDisableNotificationsById = function(_id, d ...@@ -98,7 +98,7 @@ RocketChat.models.Subscriptions.updateDisableNotificationsById = function(_id, d
RocketChat.models.Subscriptions.updateHideUnreadStatusById = function(_id, hideUnreadStatus) { RocketChat.models.Subscriptions.updateHideUnreadStatusById = function(_id, hideUnreadStatus) {
const query = { const query = {
_id: _id _id
}; };
const update = { const update = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment