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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -11,6 +11,7 @@ export interface IConversation {
mailboxId?: number;
status?: string;
subject?: string;
tag?: IDataObject[];
tags?: IDataObject[];
threads?: IDataObject[];
type?: string;

View file

@ -248,7 +248,12 @@ export class HelpScout implements INodeType {
if (operation === 'getAll') {
const returnAll = this.getNodeParameter('returnAll', i);
const options = this.getNodeParameter('options', i);
if (options.tags) {
qs.tag = options.tags.toString();
}
Object.assign(qs, options);
delete qs.tags;
if (returnAll) {
responseData = await helpscoutApiRequestAllItems.call(
this,