fix(HelpScout Node): Fix tag search not working when getting all conversations (#5239)

This commit is contained in:
Jonathan Bennetts
2023-01-25 12:35:57 +00:00
committed by GitHub
parent 901e94dc01
commit 6d36782463
2 changed files with 6 additions and 0 deletions

View File

@@ -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;

View File

@@ -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,