From c0019e7abccfbaaed563d3cda5d2a6dc0d616377 Mon Sep 17 00:00:00 2001 From: Chad Scharf <3904944+cscharf@users.noreply.github.com> Date: Thu, 2 Apr 2020 10:56:22 -0400 Subject: [PATCH] [Soft Delete] Update assignment of deleted and revision date to 1-liner --- src/Core/Services/Implementations/CipherService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Core/Services/Implementations/CipherService.cs b/src/Core/Services/Implementations/CipherService.cs index 87a64040f2..e858bb62ba 100644 --- a/src/Core/Services/Implementations/CipherService.cs +++ b/src/Core/Services/Implementations/CipherService.cs @@ -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);