From 8a48647a4df4c05fb8a1580b82a3d7ea53535c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Mon, 1 Feb 2021 15:23:14 -0300 Subject: [PATCH] Fix response traversal for postComment:add --- packages/nodes-base/nodes/Reddit/Reddit.node.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/nodes-base/nodes/Reddit/Reddit.node.ts b/packages/nodes-base/nodes/Reddit/Reddit.node.ts index d7911d8dba..4164390f10 100644 --- a/packages/nodes-base/nodes/Reddit/Reddit.node.ts +++ b/packages/nodes-base/nodes/Reddit/Reddit.node.ts @@ -230,8 +230,7 @@ export class Reddit implements INodeType { }; responseData = await redditApiRequest.call(this, 'POST', 'api/comment', qs); - - responseData = responseData.data.things; + responseData = responseData.json.data.things[0].data; } else if (operation === 'getAll') {