Add dividers to execute() method

This commit is contained in:
Iván Ovejero 2021-01-22 17:59:49 -03:00
parent 019bfe36b1
commit 04ad3f2b77

View file

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