fix: zusätzlichen Löschfall in der GroupRepository-DeleteAsync-Methode behandeln.
This commit is contained in:
parent
9f99bb0bc9
commit
4c02607409
@ -24,9 +24,13 @@ namespace DigitalData.UserManager.Infrastructure.Repositories
|
|||||||
if (gou_list.Any())
|
if (gou_list.Any())
|
||||||
_dbContext.RemoveRange(gou_list);
|
_dbContext.RemoveRange(gou_list);
|
||||||
|
|
||||||
var ur_list = await _uRepRepo.ReadAllAsync(groupId: group.Id);
|
var uRep_list = await _uRepRepo.ReadAllAsync(groupId: group.Id);
|
||||||
if (ur_list.Any())
|
if (uRep_list.Any())
|
||||||
_dbContext.RemoveRange(ur_list);
|
_dbContext.RemoveRange(uRep_list);
|
||||||
|
|
||||||
|
uRep_list = await _uRepRepo.ReadAllAsync(repGroupId: group.Id);
|
||||||
|
if (uRep_list.Any())
|
||||||
|
_dbContext.RemoveRange(uRep_list);
|
||||||
|
|
||||||
return await base.DeleteAsync(group);
|
return await base.DeleteAsync(group);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user