diff --git a/src/BCards.Web/Models/UserPage.cs b/src/BCards.Web/Models/UserPage.cs index 68bfe46..62b59fe 100644 --- a/src/BCards.Web/Models/UserPage.cs +++ b/src/BCards.Web/Models/UserPage.cs @@ -94,9 +94,11 @@ public class UserPage : IPageDisplay // Exclusão lógica [BsonElement("deletedAt")] + [BsonIgnoreIfDefault] public DateTime? DeletedAt { get; set; } [BsonElement("deletionReason")] + [BsonIgnoreIfDefault] public string? DeletionReason { get; set; } // "trial_expired", "user_requested", "moderation_violation" [BsonIgnore] diff --git a/src/BCards.Web/Views/UserPage/Display.cshtml b/src/BCards.Web/Views/UserPage/Display.cshtml index 3d4a358..b2eb1cf 100644 --- a/src/BCards.Web/Views/UserPage/Display.cshtml +++ b/src/BCards.Web/Views/UserPage/Display.cshtml @@ -217,15 +217,24 @@ @section Scripts {