🐛 Fix a small bug on Xero Node (#1681)

This commit is contained in:
MedAliMarz 2021-04-30 21:25:39 +02:00 committed by GitHub
parent 144bf3ea00
commit 029b1390ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {