From a31782864d2edfe9f2fbb94d51535dc0ed78c365 Mon Sep 17 00:00:00 2001 From: Ske Date: Sun, 21 Jun 2020 14:52:39 +0200 Subject: [PATCH] Fix message count and created not being mapped properly This weirdly only happens when going through ListedMember, perhaps the inheritance is making it so Dapper doesn't detect the backing field or soemthing... Adding a setter to the autoproperty makes things work, though. --- PluralKit.Core/Models/PKMember.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PluralKit.Core/Models/PKMember.cs b/PluralKit.Core/Models/PKMember.cs index 97c620ef..fd0026da 100644 --- a/PluralKit.Core/Models/PKMember.cs +++ b/PluralKit.Core/Models/PKMember.cs @@ -20,8 +20,8 @@ namespace PluralKit.Core { public string Description { get; set; } public ICollection ProxyTags { get; set; } public bool KeepProxy { get; set; } - public Instant Created { get; } - public int MessageCount { get; } + public Instant Created { get; set; } + public int MessageCount { get; set; } public PrivacyLevel MemberVisibility { get; set; } public PrivacyLevel DescriptionPrivacy { get; set; }