mirror of
https://github.com/bitwarden/server
synced 2025-12-13 06:43:45 +00:00
Remove archive date from create request (#6341)
This commit is contained in:
@@ -46,7 +46,6 @@ public class CipherRequestModel
|
|||||||
public CipherSecureNoteModel SecureNote { get; set; }
|
public CipherSecureNoteModel SecureNote { get; set; }
|
||||||
public CipherSSHKeyModel SSHKey { get; set; }
|
public CipherSSHKeyModel SSHKey { get; set; }
|
||||||
public DateTime? LastKnownRevisionDate { get; set; } = null;
|
public DateTime? LastKnownRevisionDate { get; set; } = null;
|
||||||
public DateTime? ArchivedDate { get; set; }
|
|
||||||
|
|
||||||
public CipherDetails ToCipherDetails(Guid userId, bool allowOrgIdSet = true)
|
public CipherDetails ToCipherDetails(Guid userId, bool allowOrgIdSet = true)
|
||||||
{
|
{
|
||||||
@@ -100,7 +99,6 @@ public class CipherRequestModel
|
|||||||
|
|
||||||
existingCipher.Reprompt = Reprompt;
|
existingCipher.Reprompt = Reprompt;
|
||||||
existingCipher.Key = Key;
|
existingCipher.Key = Key;
|
||||||
existingCipher.ArchivedDate = ArchivedDate;
|
|
||||||
|
|
||||||
var hasAttachments2 = (Attachments2?.Count ?? 0) > 0;
|
var hasAttachments2 = (Attachments2?.Count ?? 0) > 0;
|
||||||
var hasAttachments = (Attachments?.Count ?? 0) > 0;
|
var hasAttachments = (Attachments?.Count ?? 0) > 0;
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ public class CipherDetails : CipherOrganizationDetails
|
|||||||
CreationDate = cipher.CreationDate;
|
CreationDate = cipher.CreationDate;
|
||||||
RevisionDate = cipher.RevisionDate;
|
RevisionDate = cipher.RevisionDate;
|
||||||
DeletedDate = cipher.DeletedDate;
|
DeletedDate = cipher.DeletedDate;
|
||||||
|
ArchivedDate = cipher.ArchivedDate;
|
||||||
Reprompt = cipher.Reprompt;
|
Reprompt = cipher.Reprompt;
|
||||||
Key = cipher.Key;
|
Key = cipher.Key;
|
||||||
OrganizationUseTotp = cipher.OrganizationUseTotp;
|
OrganizationUseTotp = cipher.OrganizationUseTotp;
|
||||||
|
|||||||
Reference in New Issue
Block a user