mirror of
https://github.com/bitwarden/server
synced 2025-12-13 14:53:34 +00:00
[Soft Delete] Update assignment of deleted and revision date to 1-liner
This commit is contained in:
@@ -677,8 +677,7 @@ namespace Bit.Core.Services
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
cipher.DeletedDate = DateTime.UtcNow;
|
cipher.DeletedDate = cipher.RevisionDate = DateTime.UtcNow;
|
||||||
cipher.RevisionDate = DateTime.UtcNow;
|
|
||||||
|
|
||||||
await _cipherRepository.UpsertAsync(cipher);
|
await _cipherRepository.UpsertAsync(cipher);
|
||||||
await _eventService.LogCipherEventAsync(cipher, EventType.Cipher_SoftDeleted);
|
await _eventService.LogCipherEventAsync(cipher, EventType.Cipher_SoftDeleted);
|
||||||
|
|||||||
Reference in New Issue
Block a user