mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -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 additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
if (additionalFields.properties) {
|
||||
qs.properties = additionalFields.properties as string[]
|
||||
qs.properties = additionalFields.properties as string[];
|
||||
}
|
||||
if (additionalFields.propertiesWithHistory) {
|
||||
qs.propertiesWithHistory = (additionalFields.propertiesWithHistory as string).split(',');
|
||||
|
@ -739,7 +739,7 @@ export class Hubspot implements INodeType {
|
|||
if (operation === 'delete') {
|
||||
const ticketId = this.getNodeParameter('ticketId', i) as string;
|
||||
const endpoint = `/crm-objects/v1/objects/tickets/${ticketId}`;
|
||||
responseData = await hubspotApiRequest.call(this, 'DELETE', endpoint);
|
||||
await hubspotApiRequest.call(this, 'DELETE', endpoint);
|
||||
responseData = { success: true };
|
||||
}
|
||||
//https://developers.hubspot.com/docs/methods/tickets/update-ticket
|
||||
|
|
Loading…
Reference in a new issue