fix(filter): fixed filter for Updates ignoring desired state
All checks were successful
/ build (push) Successful in 5m7s

This commit is contained in:
Varakh 2024-06-14 09:16:30 +02:00
parent 3ece069068
commit 61506f44f1
2 changed files with 3 additions and 2 deletions

View file

@ -9,6 +9,7 @@ Changes adhere to [semantic versioning](https://semver.org).
* github.com/go-playground/validator/v10 v10.22.0
* gorm.io/driver/postgres v1.5.9
* gorm.io/driver/sqlite v1.5.6
* Fixed filter for Updates ignoring desired state
## [3.0.1] - 2024/06/10

View file

@ -232,7 +232,7 @@ func (r *updateDbRepo) paginate(page int, pageSize int, orderBy string, order st
}
states := make([]string, 0, len(state))
if len(states) > 0 {
if len(state) > 0 {
for _, s := range state {
states = append(states, s.Value())
}
@ -249,7 +249,7 @@ func (r *updateDbRepo) count(searchTerm string, searchIn string, state ...api.Up
var c int64
states := make([]string, 0, len(state))
if len(states) > 0 {
if len(state) > 0 {
for _, s := range state {
states = append(states, s.Value())
}