Update saveUserPreferences.js

pull/7479/head
Scott Talley 8 years ago committed by GitHub
parent 8bce87ba6c
commit cfbe725aff
  1. 16
      server/methods/saveUserPreferences.js

@ -59,13 +59,13 @@ Meteor.methods({
preferences.notificationsSoundVolume = settings.notificationsSoundVolume;
}
if (settings.desktopNotifications) {
preferences.desktopNotifications = settings.desktopNotifications;
}
if (settings.mobileNotifications) {
preferences.mobileNotifications = settings.mobileNotifications;
}
if (settings.desktopNotifications) {
preferences.desktopNotifications = settings.desktopNotifications;
}
if (settings.mobileNotifications) {
preferences.mobileNotifications = settings.mobileNotifications;
}
preferences.desktopNotificationDuration = settings.desktopNotificationDuration - 0;
preferences.viewMode = settings.viewMode || 0;
@ -81,4 +81,4 @@ Meteor.methods({
return true;
}
}
});
});

Loading…
Cancel
Save