feat(Discourse Node): Add new options to Get Users (#7674)

This commit is contained in:
Jon
2023-11-15 10:07:09 +00:00
committed by GitHub
parent b1f678856b
commit 2e8c841277
2 changed files with 111 additions and 0 deletions

View File

@@ -372,6 +372,24 @@ export class Discourse implements INodeType {
const returnAll = this.getNodeParameter('returnAll', i);
const flag = this.getNodeParameter('flag', i) as boolean;
const options = this.getNodeParameter('options', i);
if (options.stats) {
qs.stats = options.stats as boolean;
}
if (options.asc) {
qs.asc = options.asc as boolean;
}
if (options.showEmails) {
qs.show_emails = options.showEmails as boolean;
}
if (options.order) {
qs.order = options.order as string;
}
responseData = await discourseApiRequest.call(
this,
'GET',