Fix type mismatch on system export

This commit is contained in:
Ske 2019-10-27 14:49:46 +01:00
parent d4eae405c0
commit e6e1ab023a
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ namespace PluralKit.Bot
Prefix = m.Prefix, Prefix = m.Prefix,
Suffix = m.Suffix, Suffix = m.Suffix,
Created = Formats.TimestampExportFormat.Format(m.Created), Created = Formats.TimestampExportFormat.Format(m.Created),
MessageCount = messageCounts.Where(x => x.Member.Equals(m.Id)).Select(x => x.MessageCount).FirstOrDefault() MessageCount = messageCounts.Where(x => x.Member == m.Id).Select(x => x.MessageCount).FirstOrDefault()
})); }));
// Export switches // Export switches

View File

@ -41,7 +41,7 @@ namespace PluralKit {
public struct MemberMessageCount public struct MemberMessageCount
{ {
public PKMember Member; public int Member;
public int MessageCount; public int MessageCount;
} }