diff --git a/packages/nodes-base/nodes/Ghost/GenericFunctions.ts b/packages/nodes-base/nodes/Ghost/GenericFunctions.ts index 6a7f30e424..c1a83bf2c3 100644 --- a/packages/nodes-base/nodes/Ghost/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Ghost/GenericFunctions.ts @@ -73,10 +73,8 @@ export async function ghostApiRequestAllItems(this: IHookFunctions | IExecuteFun query.limit = 50; query.page = 1; - let uri: string | undefined; - do { - responseData = await ghostApiRequest.call(this, method, endpoint, body, query, uri); + responseData = await ghostApiRequest.call(this, method, endpoint, body, query); query.page = responseData.meta.pagination.next; returnData.push.apply(returnData, responseData[propertyName]); } while (