From 04ad3f2b7707bb80a9d0acdd093dba3bd160bc71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Fri, 22 Jan 2021 17:59:49 -0300 Subject: [PATCH] Add dividers to execute() method --- .../nodes-base/nodes/Reddit/Reddit.node.ts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/packages/nodes-base/nodes/Reddit/Reddit.node.ts b/packages/nodes-base/nodes/Reddit/Reddit.node.ts index 619939ecc5..9a8d126a2e 100644 --- a/packages/nodes-base/nodes/Reddit/Reddit.node.ts +++ b/packages/nodes-base/nodes/Reddit/Reddit.node.ts @@ -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;