From a8a2aa4a280b4e21c997820f5bb73f162c35bd2c Mon Sep 17 00:00:00 2001 From: Kjell Knapen Date: Mon, 14 Nov 2022 13:25:42 +0100 Subject: [PATCH] Fix issue with attributes array --- package.json | 2 +- src/endpoints/attribute.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e995f7e..0467d2d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@craftzing/akeneo-api", - "version": "1.0.8", + "version": "1.0.9", "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 dea3607..78c27a6 100644 --- a/src/endpoints/attribute.ts +++ b/src/endpoints/attribute.ts @@ -38,7 +38,7 @@ export const getAll = ( http: AxiosInstance, { query = {} }: { query?: AttributeQueryParameters }, ): Promise => - raw.getAllBySearchAfter(http, `/api/rest/v1/attributes`, { + raw.getAllByPage(http, `/api/rest/v1/attributes`, { params: query, });