From dd81a3c04f6b0a513c3f499f2e06f998c5c4969d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Tue, 19 Jan 2021 12:48:15 -0300 Subject: [PATCH] Fix minor details --- packages/nodes-base/nodes/Reddit/MyAccountDescription.ts | 2 +- packages/nodes-base/nodes/Reddit/Reddit.node.ts | 5 +++++ packages/nodes-base/nodes/Reddit/UserDescription.ts | 7 ------- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/nodes-base/nodes/Reddit/MyAccountDescription.ts b/packages/nodes-base/nodes/Reddit/MyAccountDescription.ts index 0c29663c94..e4a7d7f9dd 100644 --- a/packages/nodes-base/nodes/Reddit/MyAccountDescription.ts +++ b/packages/nodes-base/nodes/Reddit/MyAccountDescription.ts @@ -56,7 +56,7 @@ export const myAccountFields = [ description: 'Return the subreddit karma for the logged-in user', }, { - name: 'preferences', + name: 'Preferences', value: 'prefs', description: 'Return the settings preferences of the logged-in user', }, diff --git a/packages/nodes-base/nodes/Reddit/Reddit.node.ts b/packages/nodes-base/nodes/Reddit/Reddit.node.ts index ad70b495c8..619939ecc5 100644 --- a/packages/nodes-base/nodes/Reddit/Reddit.node.ts +++ b/packages/nodes-base/nodes/Reddit/Reddit.node.ts @@ -65,6 +65,11 @@ export class Reddit implements INodeType { 'submission', ], }, + hide: { + operation: [ + 'search', + ], + }, }, }, ], diff --git a/packages/nodes-base/nodes/Reddit/UserDescription.ts b/packages/nodes-base/nodes/Reddit/UserDescription.ts index 2c66b7f51d..630201b448 100644 --- a/packages/nodes-base/nodes/Reddit/UserDescription.ts +++ b/packages/nodes-base/nodes/Reddit/UserDescription.ts @@ -3,9 +3,6 @@ import { } from 'n8n-workflow'; export const userOperations = [ - // ---------------------------------- - // get: user - // ---------------------------------- { displayName: 'Operation', name: 'operation', @@ -22,10 +19,6 @@ export const userOperations = [ name: 'Get', value: 'get', }, - { - name: 'Search', - value: 'search', - }, ], default: 'get', description: 'Operation to perform',