From 08af282e4860df83779ea6b7426865c3f374840e Mon Sep 17 00:00:00 2001 From: Kjell Knapen Date: Tue, 8 Nov 2022 15:16:34 +0100 Subject: [PATCH] Remove search after from category and attributes --- package.json | 2 +- src/endpoints/attribute.ts | 2 +- src/endpoints/category.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2adc925..e995f7e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@craftzing/akeneo-api", - "version": "1.0.7", + "version": "1.0.8", "description": "A Node Rest Client for the Akeneo PIM", "author": "Jens Verbeken ", "license": "MIT", diff --git a/src/endpoints/attribute.ts b/src/endpoints/attribute.ts index 75eb8ce..dea3607 100644 --- a/src/endpoints/attribute.ts +++ b/src/endpoints/attribute.ts @@ -52,6 +52,6 @@ export const getOptions = ( query, }: { attributeCode: string; query?: AttributeOptionQueryParameters }, ): Promise => - raw.getAllBySearchAfter(http, `/api/rest/v1/attributes/${attributeCode}/options`, { + raw.getAllByPage(http, `/api/rest/v1/attributes/${attributeCode}/options`, { params: query, }); diff --git a/src/endpoints/category.ts b/src/endpoints/category.ts index a536409..01f2481 100644 --- a/src/endpoints/category.ts +++ b/src/endpoints/category.ts @@ -39,6 +39,6 @@ export const getAll = ( http: AxiosInstance, params: { query?: CategoryQueryParameters }, ): Promise => - raw.getAllBySearchAfter(http, `/api/rest/v1/categories`, { + raw.getAllByPage(http, `/api/rest/v1/categories`, { params, });