mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix(Zendesk Node): Fix issue with group assignment not working (#6501)
This commit is contained in:
parent
044c710a8e
commit
772ed7ff10
|
@ -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[];
|
||||
|
|
Loading…
Reference in a new issue