From e6e1ab023a64e00e4e66a84ba05f97e20e53384a Mon Sep 17 00:00:00 2001 From: Ske Date: Sun, 27 Oct 2019 14:49:46 +0100 Subject: [PATCH] Fix type mismatch on system export --- PluralKit.Core/DataFiles.cs | 2 +- PluralKit.Core/Stores.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PluralKit.Core/DataFiles.cs b/PluralKit.Core/DataFiles.cs index 403cbad7..2ae55944 100644 --- a/PluralKit.Core/DataFiles.cs +++ b/PluralKit.Core/DataFiles.cs @@ -40,7 +40,7 @@ namespace PluralKit.Bot Prefix = m.Prefix, Suffix = m.Suffix, 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 diff --git a/PluralKit.Core/Stores.cs b/PluralKit.Core/Stores.cs index 07bffa6c..a9576c69 100644 --- a/PluralKit.Core/Stores.cs +++ b/PluralKit.Core/Stores.cs @@ -41,7 +41,7 @@ namespace PluralKit { public struct MemberMessageCount { - public PKMember Member; + public int Member; public int MessageCount; }