mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(HelpScout Node): Fix tag search not working when getting all conversations (#5239)
This commit is contained in:
committed by
GitHub
parent
901e94dc01
commit
6d36782463
@@ -11,6 +11,7 @@ export interface IConversation {
|
|||||||
mailboxId?: number;
|
mailboxId?: number;
|
||||||
status?: string;
|
status?: string;
|
||||||
subject?: string;
|
subject?: string;
|
||||||
|
tag?: IDataObject[];
|
||||||
tags?: IDataObject[];
|
tags?: IDataObject[];
|
||||||
threads?: IDataObject[];
|
threads?: IDataObject[];
|
||||||
type?: string;
|
type?: string;
|
||||||
|
|||||||
@@ -248,7 +248,12 @@ export class HelpScout implements INodeType {
|
|||||||
if (operation === 'getAll') {
|
if (operation === 'getAll') {
|
||||||
const returnAll = this.getNodeParameter('returnAll', i);
|
const returnAll = this.getNodeParameter('returnAll', i);
|
||||||
const options = this.getNodeParameter('options', i);
|
const options = this.getNodeParameter('options', i);
|
||||||
|
if (options.tags) {
|
||||||
|
qs.tag = options.tags.toString();
|
||||||
|
}
|
||||||
Object.assign(qs, options);
|
Object.assign(qs, options);
|
||||||
|
delete qs.tags;
|
||||||
|
|
||||||
if (returnAll) {
|
if (returnAll) {
|
||||||
responseData = await helpscoutApiRequestAllItems.call(
|
responseData = await helpscoutApiRequestAllItems.call(
|
||||||
this,
|
this,
|
||||||
|
|||||||
Reference in New Issue
Block a user