mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
Add dividers to execute() method
This commit is contained in:
parent
019bfe36b1
commit
04ad3f2b77
|
@ -139,6 +139,10 @@ export class Reddit implements INodeType {
|
|||
|
||||
if (resource === 'allReddit') {
|
||||
|
||||
// ----------------------------------
|
||||
// allReddit: get
|
||||
// ----------------------------------
|
||||
|
||||
if (operation === 'get') {
|
||||
|
||||
const information = this.getNodeParameter('information', i) as string;
|
||||
|
@ -158,6 +162,10 @@ export class Reddit implements INodeType {
|
|||
|
||||
} else if (resource === 'myAccount') {
|
||||
|
||||
// ----------------------------------
|
||||
// myAccount: get
|
||||
// ----------------------------------
|
||||
|
||||
if (operation === 'get') {
|
||||
|
||||
const endpoints: {[key: string]: string} = {
|
||||
|
@ -180,6 +188,10 @@ export class Reddit implements INodeType {
|
|||
|
||||
} else if (resource === 'submission') {
|
||||
|
||||
// ----------------------------------
|
||||
// submission: post
|
||||
// ----------------------------------
|
||||
|
||||
if (operation === 'post') {
|
||||
|
||||
const qs: IDataObject = {
|
||||
|
@ -198,6 +210,10 @@ export class Reddit implements INodeType {
|
|||
|
||||
responseData = await redditApiRequest.call(this, 'POST', 'api/submit', qs, {});
|
||||
|
||||
// ----------------------------------
|
||||
// submission: comment
|
||||
// ----------------------------------
|
||||
|
||||
} else if (operation === 'comment') {
|
||||
|
||||
const qs: IDataObject = {
|
||||
|
@ -224,6 +240,10 @@ export class Reddit implements INodeType {
|
|||
|
||||
} else if (resource === 'subreddit') {
|
||||
|
||||
// ----------------------------------
|
||||
// subreddit: get
|
||||
// ----------------------------------
|
||||
|
||||
if (operation === 'get') {
|
||||
|
||||
const qs: IDataObject = {};
|
||||
|
@ -260,6 +280,10 @@ export class Reddit implements INodeType {
|
|||
|
||||
} else if (resource === 'user') {
|
||||
|
||||
// ----------------------------------
|
||||
// user: get
|
||||
// ----------------------------------
|
||||
|
||||
if (operation === 'get') {
|
||||
|
||||
const username = this.getNodeParameter('username', i) as string;
|
||||
|
|
Loading…
Reference in a new issue