Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Update maximum value of top players #191

Merged
merged 1 commit into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Application/Common/Resources/Messages.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Application/Common/Resources/Messages.resx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<value>Invalid map id has been passed</value>
</data>
<data name="InvalidMaxTopPlayers" xml:space="preserve">
<value>The maximum number of players must be between 5 to 50</value>
<value>The maximum number of players must be between 5 to 15</value>
</data>
<data name="InvalidNickName" xml:space="preserve">
<value>Must be 3-20 characters long and only contain valid characters (0-9, a-z, A-Z, [], (), $, @ . _ and = only)</value>
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Players/TopPlayers/Models/MaxTopPlayers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class MaxTopPlayers
/// <param name="value">The desired maximum number of players.</param>
public static Result<MaxTopPlayers> Create(int value)
{
if (value < 5 || value > 50)
if (value < 5 || value > 15)
return Result<MaxTopPlayers>.Failure(Messages.InvalidMaxTopPlayers);

return Result<MaxTopPlayers>.Success(new MaxTopPlayers(value));
Expand Down
Loading