1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-27 03:41:30 +01:00

Fix Organization put drops cipher updates (#1044)

This commit is contained in:
Matt Gibson 2020-12-17 11:19:14 -06:00 committed by GitHub
parent 1b8d5a8ee8
commit a46d678d6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,7 +187,7 @@ namespace Bit.Api.Controllers
}
// object cannot be a descendant of CipherDetails, so let's clone it.
var cipherClone = cipher.Clone();
var cipherClone = model.ToCipher(cipher).Clone();
await _cipherService.SaveAsync(cipherClone, userId, model.LastKnownRevisionDate, null, true, false);
var response = new CipherMiniResponseModel(cipherClone, _globalSettings, cipher.OrganizationUseTotp);