mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
⚡ Small improvements to Hubspot-Node
This commit is contained in:
parent
0adfeb36b9
commit
212210b032
|
@ -705,7 +705,7 @@ export class Hubspot implements INodeType {
|
||||||
const ticketId = this.getNodeParameter('ticketId', i) as string;
|
const ticketId = this.getNodeParameter('ticketId', i) as string;
|
||||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||||
if (additionalFields.properties) {
|
if (additionalFields.properties) {
|
||||||
qs.properties = additionalFields.properties as string[]
|
qs.properties = additionalFields.properties as string[];
|
||||||
}
|
}
|
||||||
if (additionalFields.propertiesWithHistory) {
|
if (additionalFields.propertiesWithHistory) {
|
||||||
qs.propertiesWithHistory = (additionalFields.propertiesWithHistory as string).split(',');
|
qs.propertiesWithHistory = (additionalFields.propertiesWithHistory as string).split(',');
|
||||||
|
@ -739,7 +739,7 @@ export class Hubspot implements INodeType {
|
||||||
if (operation === 'delete') {
|
if (operation === 'delete') {
|
||||||
const ticketId = this.getNodeParameter('ticketId', i) as string;
|
const ticketId = this.getNodeParameter('ticketId', i) as string;
|
||||||
const endpoint = `/crm-objects/v1/objects/tickets/${ticketId}`;
|
const endpoint = `/crm-objects/v1/objects/tickets/${ticketId}`;
|
||||||
responseData = await hubspotApiRequest.call(this, 'DELETE', endpoint);
|
await hubspotApiRequest.call(this, 'DELETE', endpoint);
|
||||||
responseData = { success: true };
|
responseData = { success: true };
|
||||||
}
|
}
|
||||||
//https://developers.hubspot.com/docs/methods/tickets/update-ticket
|
//https://developers.hubspot.com/docs/methods/tickets/update-ticket
|
||||||
|
|
Loading…
Reference in a new issue