From 207fd331d52de5e8671f2db9095cc792a9dec743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Mon, 28 Oct 2024 14:35:05 +0100 Subject: [PATCH] v0.0.540 handle ct=nil same as ct=Start --- goextVersion.go | 4 ++-- wmo/queryList.go | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/goextVersion.go b/goextVersion.go index a3895c8..e1ed1ed 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -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" diff --git a/wmo/queryList.go b/wmo/queryList.go index 5bf2766..54ac72a 100644 --- a/wmo/queryList.go +++ b/wmo/queryList.go @@ -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 {