From d86b3be54f35ad92a6fe5a38b06d687c756635e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Fri, 27 Feb 2026 01:17:41 +0100 Subject: [PATCH] pl-api: no need to mark this as internal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-api/lib/client/grouped-notifications.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/pl-api/lib/client/grouped-notifications.ts b/packages/pl-api/lib/client/grouped-notifications.ts index acb3d1c92..d10e10114 100644 --- a/packages/pl-api/lib/client/grouped-notifications.ts +++ b/packages/pl-api/lib/client/grouped-notifications.ts @@ -31,7 +31,7 @@ const GROUPED_TYPES = [ 'participation_request', ]; -const _groupNotifications = ( +const groupNotifications = ( { previous, next, items, ...response }: PaginatedResponse, params?: GetGroupedNotificationsParams, ): PaginatedResponse => { @@ -94,8 +94,8 @@ const _groupNotifications = ( return { ...response, - previous: previous ? async () => _groupNotifications(await previous(), params) : null, - next: next ? async () => _groupNotifications(await next(), params) : null, + previous: previous ? async () => groupNotifications(await previous(), params) : null, + next: next ? async () => groupNotifications(await next(), params) : null, items: groupedNotificationsResults, }; }; @@ -139,7 +139,7 @@ const groupedNotifications = ( ]), ); - return _groupNotifications(response, params); + return groupNotifications(response, params); }, /** @@ -158,7 +158,7 @@ const groupedNotifications = ( const response = await client.request(`/api/v1/notifications/${groupKey}`); - return _groupNotifications({ + return groupNotifications({ previous: null, next: null, items: [response.json],