mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
Clean up logging and comments
This commit is contained in:
parent
e34e4f181f
commit
487bf4c7eb
|
@ -25,7 +25,6 @@ export async function redditApiRequest(
|
|||
|
||||
const resource = this.getNodeParameter('resource', 0) as string;
|
||||
const operation = this.getNodeParameter('operation', 0) as string;
|
||||
// const requiresAuth = ['myAccount', 'submission'].includes(resource);
|
||||
const requiresAuth = resource === 'myAccount' ||
|
||||
(resource === 'submission' && ['post', 'comment'].includes(operation));
|
||||
|
||||
|
@ -49,7 +48,6 @@ export async function redditApiRequest(
|
|||
}
|
||||
|
||||
try {
|
||||
console.log(options);
|
||||
return requiresAuth
|
||||
? await this.helpers.requestOAuth2.call(this, 'redditOAuth2Api', options)
|
||||
: await this.helpers.request.call(this, options);
|
||||
|
|
Loading…
Reference in a new issue