mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
Fixed the issue where you couldn't remove a legacy user from the notifications
This commit is contained in:
parent
4071b2e8a2
commit
50af2b8482
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ namespace Ombi.Controllers.V1
|
||||||
[Admin]
|
[Admin]
|
||||||
public async Task<bool> RemoveUser([FromBody] RemoveUserModel userId)
|
public async Task<bool> RemoveUser([FromBody] RemoveUserModel userId)
|
||||||
{
|
{
|
||||||
var user = await _userManager.Users.Include(x => x.NotificationUserIds).FirstOrDefaultAsync(x => x.Id.Equals(userId.UserId, StringComparison.InvariantCultureIgnoreCase));
|
var user = await _userManager.Users.Include(x => x.NotificationUserIds).FirstOrDefaultAsync(x => x.Id == userId.UserId);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
await _notification.DeleteRange(user.NotificationUserIds);
|
await _notification.DeleteRange(user.NotificationUserIds);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue