fix(budget): empty string check
All checks were successful
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 1m20s
All checks were successful
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 1m20s
This commit is contained in:
@@ -107,12 +107,11 @@ func (s ServiceImpl) GetAll(ctx context.Context, user *auth_types.User) ([]Budge
|
||||
}
|
||||
|
||||
func (s ServiceImpl) isBudgetValid(budget Budget) bool {
|
||||
if budget.Description != "" {
|
||||
err := core.ValidateString(budget.Description, "description")
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
} else if budget.Value < 0 {
|
||||
if budget.Value < 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user