Add resource dividers

This commit is contained in:
Iván Ovejero 2021-01-29 11:47:55 -03:00
parent fb72f02675
commit c39891c28f

View file

@ -123,6 +123,10 @@ export class Reddit implements INodeType {
for (let i = 0; i < items.length; i++) {
// *********************************************************************
// comment
// *********************************************************************
if (resource === 'comment') {
// ----------------------------------
@ -136,6 +140,10 @@ export class Reddit implements INodeType {
responseData = await redditApiRequest.call(this, 'POST', 'api/comment', qs);
// *********************************************************************
// profile
// *********************************************************************
} else if (resource === 'profile') {
// ----------------------------------
@ -163,6 +171,10 @@ export class Reddit implements INodeType {
}
// *********************************************************************
// subreddit
// *********************************************************************
} else if (resource === 'subreddit') {
// ----------------------------------
@ -200,6 +212,10 @@ export class Reddit implements INodeType {
}
}
// *********************************************************************
// post
// *********************************************************************
} else if (resource === 'post') {
// ----------------------------------
@ -240,11 +256,15 @@ export class Reddit implements INodeType {
}
// *********************************************************************
// user
// *********************************************************************
} else if (resource === 'user') {
// ----------------------------------
// user: get
// ----------------------------------
// ----------------------------------
// user: get
// ----------------------------------
if (operation === 'get') {