mirror of
https://github.com/bitwarden/server.git
synced 2026-02-05 16:43:14 +08:00
Resolve competing cascade action: manually set FKID to null
This commit is contained in:
@@ -114,7 +114,8 @@ public class OrganizationUserRepository : Repository<Core.Entities.OrganizationU
|
||||
.SetProperty(c => c.Type, CollectionType.SharedCollection)
|
||||
.SetProperty(c => c.RevisionDate, utcNow)
|
||||
.SetProperty(c => c.DefaultUserCollectionEmail,
|
||||
c => c.DefaultUserCollectionEmail == null ? email : c.DefaultUserCollectionEmail));
|
||||
c => c.DefaultUserCollectionEmail == null ? email : c.DefaultUserCollectionEmail)
|
||||
.SetProperty(c => c.DefaultCollectionOwner, (Guid?)null));
|
||||
|
||||
await dbContext.CollectionUsers
|
||||
.Where(cu => cu.OrganizationUserId == organizationUser.Id)
|
||||
|
||||
Reference in New Issue
Block a user