mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 21:48:12 -05:00
[Soft Delete] Update assignment of deleted and revision date to 1-liner
This commit is contained in:
parent
d07f27f274
commit
c0019e7abc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user