v0.0.443 fix wmo.List with pageSize==0
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 3m9s
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 3m9s
This commit is contained in:
@@ -14,6 +14,10 @@ func (c *Coll[TData]) List(ctx context.Context, filter ct.Filter, pageSize *int,
|
||||
return make([]TData, 0), ct.End(), nil
|
||||
}
|
||||
|
||||
if pageSize != nil && *pageSize == 0 {
|
||||
return make([]TData, 0), inTok, nil // fast track, we return an empty list and do not advance the cursor token
|
||||
}
|
||||
|
||||
pipeline := mongo.Pipeline{}
|
||||
pf1 := "_id"
|
||||
pd1 := ct.SortASC
|
||||
|
Reference in New Issue
Block a user