mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(Zendesk Node): Fix issue with group assignment not working (#6501)
This commit is contained in:
@@ -34,6 +34,9 @@ export class ZendeskApi implements ICredentialType {
|
||||
name: 'apiToken',
|
||||
type: 'string',
|
||||
default: '',
|
||||
typeOptions: {
|
||||
password: true,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ export interface ITicket {
|
||||
subject?: string;
|
||||
comment?: IComment;
|
||||
type?: string;
|
||||
group?: string;
|
||||
group_id?: number;
|
||||
external_id?: string;
|
||||
tags?: string[];
|
||||
status?: string;
|
||||
|
||||
@@ -319,7 +319,7 @@ export class Zendesk implements INodeType {
|
||||
body.recipient = additionalFields.recipient as string;
|
||||
}
|
||||
if (additionalFields.group) {
|
||||
body.group = additionalFields.group as string;
|
||||
body.group_id = additionalFields.group as number;
|
||||
}
|
||||
if (additionalFields.tags) {
|
||||
body.tags = additionalFields.tags as string[];
|
||||
@@ -371,7 +371,7 @@ export class Zendesk implements INodeType {
|
||||
body.recipient = updateFields.recipient as string;
|
||||
}
|
||||
if (updateFields.group) {
|
||||
body.group = updateFields.group as string;
|
||||
body.group_id = updateFields.group as number;
|
||||
}
|
||||
if (updateFields.tags) {
|
||||
body.tags = updateFields.tags as string[];
|
||||
|
||||
Reference in New Issue
Block a user