mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
🐛 Fix a small bug on Xero Node (#1681)
This commit is contained in:
parent
144bf3ea00
commit
029b1390ee
|
@ -434,7 +434,6 @@ export class Xero implements INodeType {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (resource === 'contact') {
|
if (resource === 'contact') {
|
||||||
}
|
|
||||||
if (operation === 'create') {
|
if (operation === 'create') {
|
||||||
const organizationId = this.getNodeParameter('organizationId', i) as string;
|
const organizationId = this.getNodeParameter('organizationId', i) as string;
|
||||||
const name = this.getNodeParameter('name', i) as string;
|
const name = this.getNodeParameter('name', i) as string;
|
||||||
|
@ -670,6 +669,7 @@ export class Xero implements INodeType {
|
||||||
responseData = await xeroApiRequest.call(this, 'POST', `/Contacts/${contactId}`, { organizationId, Contacts: [body] });
|
responseData = await xeroApiRequest.call(this, 'POST', `/Contacts/${contactId}`, { organizationId, Contacts: [body] });
|
||||||
responseData = responseData.Contacts;
|
responseData = responseData.Contacts;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (Array.isArray(responseData)) {
|
if (Array.isArray(responseData)) {
|
||||||
returnData.push.apply(returnData, responseData as IDataObject[]);
|
returnData.push.apply(returnData, responseData as IDataObject[]);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue