diff --git a/Bottomly/Models/Karma.cs b/Bottomly/Models/Karma.cs index cff481c..58ea5bf 100644 --- a/Bottomly/Models/Karma.cs +++ b/Bottomly/Models/Karma.cs @@ -20,6 +20,11 @@ public class Karma [BsonElement("awarded")] public DateTime Awarded { get; set; } [BsonElement("karma_type")] public string KarmaTypeValue { get; set; } = string.Empty; + + /// + /// Legacy element to enable support from pymongo persisted data + /// + [BsonElement("_cls")] public string Cls { get; set; } = string.Empty; [BsonIgnore] public KarmaType KarmaType diff --git a/Bottomly/Models/Member.cs b/Bottomly/Models/Member.cs index ecf780e..eae6c81 100644 --- a/Bottomly/Models/Member.cs +++ b/Bottomly/Models/Member.cs @@ -16,6 +16,12 @@ public class Member [BsonElement("misc_info")] public string MiscInfo { get; set; } = string.Empty; + /// + /// Legacy element to enable support from pymongo persisted data + /// + [BsonElement("_cls")] + public string Cls { get; set; } = string.Empty; + [BsonIgnore] public string Note => $"FullName: {FullName}\n" +