mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 05:13:18 -07:00
Fixed a bug with the notification preferences !wip
This commit is contained in:
parent
91b6dfe2b7
commit
550028b9eb
1 changed files with 13 additions and 9 deletions
|
@ -955,7 +955,10 @@ namespace Ombi.Controllers
|
|||
// Update it
|
||||
existingPreference.Value = pref.Value;
|
||||
existingPreference.Enabled = pref.Enabled;
|
||||
await _userNotificationPreferences.SaveChangesAsync();
|
||||
}
|
||||
else
|
||||
{
|
||||
await _userNotificationPreferences.Add(new UserNotificationPreferences
|
||||
{
|
||||
Agent = pref.Agent,
|
||||
|
@ -963,6 +966,7 @@ namespace Ombi.Controllers
|
|||
UserId = pref.UserId,
|
||||
Value = pref.Value
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
return Json(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue