mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
fix(QuickBooks Node) Fix pagination (#3169)
* Fixed pagination issue * Removed unused import
This commit is contained in:
parent
bc5749b7ae
commit
a790dcae3d
|
@ -7,7 +7,6 @@ import {
|
|||
IDataObject,
|
||||
ILoadOptionsFunctions,
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
INodePropertyOptions,
|
||||
NodeApiError,
|
||||
} from 'n8n-workflow';
|
||||
|
@ -126,7 +125,11 @@ export async function quickBooksApiRequestAllItems(
|
|||
const maxResults = 1000;
|
||||
const returnData: IDataObject[] = [];
|
||||
|
||||
const maxCount = await getCount.call(this, method, endpoint, qs);
|
||||
const maxCountQuery = {
|
||||
query: `SELECT COUNT(*) FROM ${resource}`,
|
||||
} as IDataObject;
|
||||
|
||||
const maxCount = await getCount.call(this, method, endpoint, maxCountQuery);
|
||||
|
||||
const originalQuery = qs.query as string;
|
||||
|
||||
|
|
Loading…
Reference in a new issue