mirror of
https://github.com/bitwarden/server
synced 2025-12-12 22:33:45 +00:00
fix bugs around collection association
This commit is contained in:
@@ -338,7 +338,11 @@ namespace Bit.Core.Services
|
||||
cipher.UserId = sharingUserId;
|
||||
cipher.OrganizationId = organizationId;
|
||||
cipher.RevisionDate = DateTime.UtcNow;
|
||||
await _cipherRepository.ReplaceAsync(cipher, collectionIds);
|
||||
if(!await _cipherRepository.ReplaceAsync(cipher, collectionIds))
|
||||
{
|
||||
throw new BadRequestException("Unable to save.");
|
||||
}
|
||||
|
||||
updatedCipher = true;
|
||||
|
||||
if(hasAttachments)
|
||||
|
||||
Reference in New Issue
Block a user