mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -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 (operation === 'create') {
|
||||
const organizationId = this.getNodeParameter('organizationId', 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 = responseData.Contacts;
|
||||
}
|
||||
}
|
||||
if (Array.isArray(responseData)) {
|
||||
returnData.push.apply(returnData, responseData as IDataObject[]);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue