mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-11 10:27:58 +01:00
Fix orm query setter issue (#11177)
For the Andlist, the query setter should ignore it Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
1762bfae69
commit
15d2a93aa2
@ -72,7 +72,7 @@ func QuerySetter(ctx context.Context, model interface{}, query *q.Query, ignored
|
||||
}
|
||||
|
||||
// and list
|
||||
_, ok = v.(*q.OrList)
|
||||
_, ok = v.(*q.AndList)
|
||||
if ok {
|
||||
// do nothing as and list needs to be handled by the logic of DAO
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user