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.
This commit is contained in:
Ske 2020-06-21 14:52:39 +02:00
parent 378c49cb20
commit a31782864d

View File

@ -20,8 +20,8 @@ namespace PluralKit.Core {
public string Description { get; set; } public string Description { get; set; }
public ICollection<ProxyTag> ProxyTags { get; set; } public ICollection<ProxyTag> ProxyTags { get; set; }
public bool KeepProxy { get; set; } public bool KeepProxy { get; set; }
public Instant Created { get; } public Instant Created { get; set; }
public int MessageCount { get; } public int MessageCount { get; set; }
public PrivacyLevel MemberVisibility { get; set; } public PrivacyLevel MemberVisibility { get; set; }
public PrivacyLevel DescriptionPrivacy { get; set; } public PrivacyLevel DescriptionPrivacy { get; set; }