diff --git a/src/Core/Models/Request/CipherRequest.cs b/src/Core/Models/Request/CipherRequest.cs index b0f7cee97..690f23676 100644 --- a/src/Core/Models/Request/CipherRequest.cs +++ b/src/Core/Models/Request/CipherRequest.cs @@ -3,6 +3,7 @@ using Bit.Core.Models.Api; using Bit.Core.Models.Domain; using System.Collections.Generic; using System.Linq; +using System; namespace Bit.Core.Models.Request { @@ -16,6 +17,7 @@ namespace Bit.Core.Models.Request Name = cipher.Name?.EncryptedString; Notes = cipher.Notes?.EncryptedString; Favorite = cipher.Favorite; + LastKnownRevisionDate = cipher.RevisionDate; switch (Type) { @@ -118,5 +120,6 @@ namespace Bit.Core.Models.Request public List PasswordHistory { get; set; } public Dictionary Attachments { get; set; } public Dictionary Attachments2 { get; set; } + public DateTime LastKnownRevisionDate { get; set; } } } diff --git a/src/Core/Services/CipherService.cs b/src/Core/Services/CipherService.cs index 6cad02b8d..423c6169c 100644 --- a/src/Core/Services/CipherService.cs +++ b/src/Core/Services/CipherService.cs @@ -176,7 +176,8 @@ namespace Bit.Core.Services Favorite = model.Favorite, OrganizationId = model.OrganizationId, Type = model.Type, - CollectionIds = model.CollectionIds + CollectionIds = model.CollectionIds, + RevisionDate = model.RevisionDate }; if (key == null && cipher.OrganizationId != null)