v0.0.257 better handling if pagination is faulty in wmo list
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m2s

This commit is contained in:
2023-09-05 15:01:55 +02:00
parent 43cac4b3bb
commit 0fd5f3b417
4 changed files with 33 additions and 9 deletions

View File

@@ -21,7 +21,19 @@ func (c *Coll[TData]) List(ctx context.Context, filter ct.Filter, pageSize *int,
if filter != nil {
pipeline = filter.FilterQuery()
pf1, pd1, pf2, pd2 = filter.Pagination()
fpf1, fpd1, fpf2, fpd2 := filter.Pagination()
if fpf1 != "" {
pf1 = fpf1
}
if fpd1 != "" {
pd1 = fpd1
}
if fpf2 != "" {
pf2 = fpf2
}
if fpd2 != "" {
pd2 = fpd2
}
}
sortPrimary := pf1