mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
🐛 Fix Xero pagination (#2396)
This commit is contained in:
@@ -26,7 +26,6 @@ export async function xeroApiRequest(this: IExecuteFunctions | IExecuteSingleFun
|
|||||||
try {
|
try {
|
||||||
if (body.organizationId) {
|
if (body.organizationId) {
|
||||||
options.headers = { ...options.headers, 'Xero-tenant-id': body.organizationId };
|
options.headers = { ...options.headers, 'Xero-tenant-id': body.organizationId };
|
||||||
delete body.organizationId;
|
|
||||||
}
|
}
|
||||||
if (Object.keys(headers).length !== 0) {
|
if (Object.keys(headers).length !== 0) {
|
||||||
options.headers = Object.assign({}, options.headers, headers);
|
options.headers = Object.assign({}, options.headers, headers);
|
||||||
|
|||||||
Reference in New Issue
Block a user