fix(filter): fixed filter for Updates ignoring desired state
All checks were successful
/ build (push) Successful in 5m7s
All checks were successful
/ build (push) Successful in 5m7s
This commit is contained in:
parent
3ece069068
commit
61506f44f1
2 changed files with 3 additions and 2 deletions
|
@ -9,6 +9,7 @@ Changes adhere to [semantic versioning](https://semver.org).
|
||||||
* github.com/go-playground/validator/v10 v10.22.0
|
* github.com/go-playground/validator/v10 v10.22.0
|
||||||
* gorm.io/driver/postgres v1.5.9
|
* gorm.io/driver/postgres v1.5.9
|
||||||
* gorm.io/driver/sqlite v1.5.6
|
* gorm.io/driver/sqlite v1.5.6
|
||||||
|
* Fixed filter for Updates ignoring desired state
|
||||||
|
|
||||||
## [3.0.1] - 2024/06/10
|
## [3.0.1] - 2024/06/10
|
||||||
|
|
||||||
|
|
|
@ -232,7 +232,7 @@ func (r *updateDbRepo) paginate(page int, pageSize int, orderBy string, order st
|
||||||
}
|
}
|
||||||
|
|
||||||
states := make([]string, 0, len(state))
|
states := make([]string, 0, len(state))
|
||||||
if len(states) > 0 {
|
if len(state) > 0 {
|
||||||
for _, s := range state {
|
for _, s := range state {
|
||||||
states = append(states, s.Value())
|
states = append(states, s.Value())
|
||||||
}
|
}
|
||||||
|
@ -249,7 +249,7 @@ func (r *updateDbRepo) count(searchTerm string, searchIn string, state ...api.Up
|
||||||
var c int64
|
var c int64
|
||||||
|
|
||||||
states := make([]string, 0, len(state))
|
states := make([]string, 0, len(state))
|
||||||
if len(states) > 0 {
|
if len(state) > 0 {
|
||||||
for _, s := range state {
|
for _, s := range state {
|
||||||
states = append(states, s.Value())
|
states = append(states, s.Value())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue