Skip to content

Change memory validation minimum to 6#5561

Open
KroZen-Dev wants to merge 2 commits intopterodactyl:1.0-developfrom
KroZen-Dev:feat/enforce-min-memory
Open

Change memory validation minimum to 6#5561
KroZen-Dev wants to merge 2 commits intopterodactyl:1.0-developfrom
KroZen-Dev:feat/enforce-min-memory

Conversation

@KroZen-Dev
Copy link

This pull request makes a small but important change to the validation rules for the memory attribute in the Server model. The minimum allowed value for memory has been increased from 0 to 6.

  • Increased the minimum value for the memory field in the Server model validation rules from 0 to 6.Updated memory validation to require a minimum of 6

🔗 Linked Issues: #4912

Updated memory validation to require a minimum of 6.
@voidvalue-dev
Copy link
Contributor

@KroZen-Dev The thing is, when the RAM is infinite, it becomes 0.

Added custom validation for memory field to ensure it is either 0 or at least 6.
@KroZen-Dev
Copy link
Author

Fixed the error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants