1
0
mirror of https://github.com/bitwarden/server synced 2026-01-03 00:53:37 +00:00

Revert "Remove archive date from create request (#6341)" (#6346)

This reverts commit 2dd89b488d.
This commit is contained in:
SmithThe4th
2025-09-16 11:16:00 -04:00
committed by GitHub
parent 4b3ac2ea61
commit da48603c18
2 changed files with 2 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ public class CipherRequestModel
public CipherSecureNoteModel SecureNote { get; set; }
public CipherSSHKeyModel SSHKey { get; set; }
public DateTime? LastKnownRevisionDate { get; set; } = null;
public DateTime? ArchivedDate { get; set; }
public CipherDetails ToCipherDetails(Guid userId, bool allowOrgIdSet = true)
{
@@ -99,6 +100,7 @@ public class CipherRequestModel
existingCipher.Reprompt = Reprompt;
existingCipher.Key = Key;
existingCipher.ArchivedDate = ArchivedDate;
var hasAttachments2 = (Attachments2?.Count ?? 0) > 0;
var hasAttachments = (Attachments?.Count ?? 0) > 0;