Fix response traversal for postComment:add

This commit is contained in:
Iván Ovejero 2021-02-01 15:23:14 -03:00
parent 7d99ed0be7
commit 8a48647a4d

View file

@ -230,8 +230,7 @@ export class Reddit implements INodeType {
}; };
responseData = await redditApiRequest.call(this, 'POST', 'api/comment', qs); responseData = await redditApiRequest.call(this, 'POST', 'api/comment', qs);
responseData = responseData.json.data.things[0].data;
responseData = responseData.data.things;
} else if (operation === 'getAll') { } else if (operation === 'getAll') {