mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
Make subreddit:get responses consistent
This commit is contained in:
parent
a286913c2c
commit
92deb81286
|
@ -124,4 +124,4 @@ export async function handleListing(
|
|||
}
|
||||
|
||||
return responseData;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -193,6 +193,10 @@ export class Reddit implements INodeType {
|
|||
|
||||
if (content === 'rules') {
|
||||
responseData = responseData.rules;
|
||||
} else if (content === 'about') {
|
||||
responseData = responseData.data;
|
||||
} else if (content === 'sticky') {
|
||||
responseData = responseData.map((item: any) => item.data.children[0].data); // tslint:disable-line:no-any
|
||||
}
|
||||
|
||||
// ----------------------------------
|
||||
|
|
Loading…
Reference in a new issue