Browse Source

get updated cipher and used that in the response model (#4030)

pull/4033/head
SmithThe4th 2 years ago committed by GitHub
parent
commit
cb55699d80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      src/Api/Vault/Controllers/CiphersController.cs

3
src/Api/Vault/Controllers/CiphersController.cs

@ -573,8 +573,9 @@ public class CiphersController : Controller @@ -573,8 +573,9 @@ public class CiphersController : Controller
await _cipherService.SaveCollectionsAsync(cipher,
model.CollectionIds.Select(c => new Guid(c)), userId, false);
var updatedCipher = await GetByIdAsync(id, userId);
var collectionCiphers = await _collectionCipherRepository.GetManyByUserIdCipherIdAsync(userId, id, UseFlexibleCollections);
return new CipherDetailsResponseModel(cipher, _globalSettings, collectionCiphers);
return new CipherDetailsResponseModel(updatedCipher, _globalSettings, collectionCiphers);
}
[HttpPut("{id}/collections-admin")]

Loading…
Cancel
Save