From 62f2ce9268177717a4b740a000a9a128805bd0b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Mon, 9 Dec 2024 17:39:35 +0100 Subject: [PATCH] v0.0.548 --- cursortoken/direction.go | 10 ++++++++++ goextVersion.go | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/cursortoken/direction.go b/cursortoken/direction.go index 9ed91bc..bb42ef1 100644 --- a/cursortoken/direction.go +++ b/cursortoken/direction.go @@ -6,3 +6,13 @@ const ( SortASC SortDirection = "ASC" SortDESC SortDirection = "DESC" ) + +func (sd SortDirection) ToMongo() int { + if sd == SortASC { + return 1 + } else if sd == SortDESC { + return -1 + } else { + return 0 + } +} diff --git a/goextVersion.go b/goextVersion.go index 15c03de..bfb6a3e 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.547" +const GoextVersion = "0.0.548" -const GoextVersionTimestamp = "2024-12-08T18:04:04+0100" +const GoextVersionTimestamp = "2024-12-09T17:39:35+0100"