From fef13874db7da99a9ad693b282c55c1a8e0a2b31 Mon Sep 17 00:00:00 2001 From: "m.ray" <16125548+MadalinaRaicu@users.noreply.github.com> Date: Wed, 6 Dec 2023 14:32:51 +0200 Subject: [PATCH] chore(trading): update generic data provider (#5431) --- libs/data-provider/src/generic-data-provider.ts | 3 ++- libs/trades/src/lib/trades-data-provider.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/data-provider/src/generic-data-provider.ts b/libs/data-provider/src/generic-data-provider.ts index 5895ba3cc..6579a36e1 100644 --- a/libs/data-provider/src/generic-data-provider.ts +++ b/libs/data-provider/src/generic-data-provider.ts @@ -153,7 +153,8 @@ interface DataProviderParams< pagination?: { getPageInfo: GetPageInfo; append: Append; - first: number; + first?: number; + last?: number; }; fetchPolicy?: FetchPolicy; resetDelay?: number; diff --git a/libs/trades/src/lib/trades-data-provider.ts b/libs/trades/src/lib/trades-data-provider.ts index 4ee1cee9c..d97431d82 100644 --- a/libs/trades/src/lib/trades-data-provider.ts +++ b/libs/trades/src/lib/trades-data-provider.ts @@ -98,7 +98,7 @@ export const tradesProvider = makeDataProvider< pagination: { getPageInfo, append, - first: MAX_TRADES, + last: MAX_TRADES, }, fetchPolicy: 'no-cache', getSubscriptionVariables: ({ marketId }) => ({ marketId }),