1
0
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:
Chad Scharf 2020-04-02 10:56:22 -04:00
parent d07f27f274
commit c0019e7abc

View File

@ -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);