From 2eade8cb8a4c648258e6440d4275b092ca2bd14e Mon Sep 17 00:00:00 2001 From: spiral Date: Thu, 22 Oct 2020 15:50:56 -0500 Subject: [PATCH] Fix error message when importing >1k members --- PluralKit.Core/Services/DataFileService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PluralKit.Core/Services/DataFileService.cs b/PluralKit.Core/Services/DataFileService.cs index 87f3684c..c694a156 100644 --- a/PluralKit.Core/Services/DataFileService.cs +++ b/PluralKit.Core/Services/DataFileService.cs @@ -206,7 +206,8 @@ namespace PluralKit.Core [JsonIgnore] public bool Valid => TimeZoneValid && Members != null && - Members.Count <= Limits.MaxMemberCount && + // no need to check this here, it is checked later as part of the import + // Members.Count <= Limits.MaxMemberCount && Members.All(m => m.Valid) && Switches != null && Switches.Count < 10000 && @@ -363,4 +364,4 @@ namespace PluralKit.Core [JsonIgnore] public bool Valid => true; } -} \ No newline at end of file +}