v0.0.540 handle ct=nil same as ct=Start
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m25s

This commit is contained in:
Mike Schwörer 2024-10-28 14:35:05 +01:00
parent 54b0d6701d
commit 207fd331d5
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
package goext
const GoextVersion = "0.0.539"
const GoextVersion = "0.0.540"
const GoextVersionTimestamp = "2024-10-27T02:21:35+0200"
const GoextVersionTimestamp = "2024-10-28T14:35:05+0100"

View File

@ -10,6 +10,10 @@ import (
)
func (c *Coll[TData]) List(ctx context.Context, filter ct.Filter, pageSize *int, inTok ct.CursorToken) ([]TData, ct.CursorToken, error) {
if inTok == nil {
inTok = ct.Start()
}
if ctks, ok := inTok.(ct.CTKeySort); ok {
d, tok, err := c.listWithKSToken(ctx, filter, pageSize, ctks)
if err != nil {