🐛 Fix validate condition issue
This commit is contained in:
parent
817c573048
commit
7a072988ce
@ -26,7 +26,7 @@ func ValidateAccountName(val string, min, max int) bool {
|
||||
actualLength += 1
|
||||
}
|
||||
}
|
||||
return min > actualLength && actualLength < max
|
||||
return actualLength >= min && max >= actualLength
|
||||
}
|
||||
|
||||
func GetAccount(id uint) (models.Account, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user