mirror of
https://github.com/bitwarden/server.git
synced 2025-04-09 15:18:13 -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;
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user