mirror of
https://github.com/bitwarden/server
synced 2025-12-11 13:53:40 +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;
|
||||
}
|
||||
|
||||
cipher.DeletedDate = DateTime.UtcNow;
|
||||
cipher.RevisionDate = DateTime.UtcNow;
|
||||
cipher.DeletedDate = cipher.RevisionDate = DateTime.UtcNow;
|
||||
|
||||
await _cipherRepository.UpsertAsync(cipher);
|
||||
await _eventService.LogCipherEventAsync(cipher, EventType.Cipher_SoftDeleted);
|
||||
|
||||
Reference in New Issue
Block a user