mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Fix error message when importing >1k members
This commit is contained in:
parent
019800f396
commit
2eade8cb8a
1 changed files with 3 additions and 2 deletions
|
|
@ -206,7 +206,8 @@ namespace PluralKit.Core
|
||||||
[JsonIgnore] public bool Valid =>
|
[JsonIgnore] public bool Valid =>
|
||||||
TimeZoneValid &&
|
TimeZoneValid &&
|
||||||
Members != null &&
|
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) &&
|
Members.All(m => m.Valid) &&
|
||||||
Switches != null &&
|
Switches != null &&
|
||||||
Switches.Count < 10000 &&
|
Switches.Count < 10000 &&
|
||||||
|
|
@ -363,4 +364,4 @@ namespace PluralKit.Core
|
||||||
|
|
||||||
[JsonIgnore] public bool Valid => true;
|
[JsonIgnore] public bool Valid => true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue