From fe5f6025219f209d9c242e2d6a43b9ba70cae6ad Mon Sep 17 00:00:00 2001 From: Jonathan Armani Date: Thu, 16 Nov 2023 13:35:52 +0100 Subject: [PATCH] feat: Enable sorting by specific field in GetMessageMetadata --- message.go | 4 ---- message_types.go | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/message.go b/message.go index 356630a..a14fa27 100644 --- a/message.go +++ b/message.go @@ -302,15 +302,11 @@ func (c *Client) GetMessageMetadataPage(ctx context.Context, page, pageSize int, Page int PageSize int - - Sort string }{ MessageFilter: filter, Page: page, PageSize: pageSize, - - Sort: "ID", } for { diff --git a/message_types.go b/message_types.go index 4d5fe95..a6ef6d9 100644 --- a/message_types.go +++ b/message_types.go @@ -55,6 +55,7 @@ type MessageFilter struct { ExternalID string `json:",omitempty"` LabelID string `json:",omitempty"` EndID string `json:",omitempty"` + Sort string `json:",omitempty"` Desc Bool }