mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(Discourse Node): Add new options to Get Users (#7674)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user