mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -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
|
// Update it
|
||||||
existingPreference.Value = pref.Value;
|
existingPreference.Value = pref.Value;
|
||||||
existingPreference.Enabled = pref.Enabled;
|
existingPreference.Enabled = pref.Enabled;
|
||||||
|
await _userNotificationPreferences.SaveChangesAsync();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
await _userNotificationPreferences.Add(new UserNotificationPreferences
|
await _userNotificationPreferences.Add(new UserNotificationPreferences
|
||||||
{
|
{
|
||||||
Agent = pref.Agent,
|
Agent = pref.Agent,
|
||||||
|
@ -963,6 +966,7 @@ namespace Ombi.Controllers
|
||||||
UserId = pref.UserId,
|
UserId = pref.UserId,
|
||||||
Value = pref.Value
|
Value = pref.Value
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return Json(true);
|
return Json(true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue