mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(GitHub Node): Fix binary data not being returned (#4017)
Fix binary data not being returned in Github node
This commit is contained in:
parent
6216132ae2
commit
5753110402
|
@ -2137,8 +2137,7 @@ export class Github implements INodeType {
|
||||||
// but the incoming data does not get changed.
|
// but the incoming data does not get changed.
|
||||||
Object.assign(newItem.binary as object, items[i].binary!);
|
Object.assign(newItem.binary as object, items[i].binary!);
|
||||||
}
|
}
|
||||||
|
const { content, path } = responseData;
|
||||||
const { content, path } = responseData[i].json;
|
|
||||||
newItem.binary![binaryPropertyName] = await this.helpers.prepareBinaryData(
|
newItem.binary![binaryPropertyName] = await this.helpers.prepareBinaryData(
|
||||||
Buffer.from(content as string, 'base64'),
|
Buffer.from(content as string, 'base64'),
|
||||||
path as string,
|
path as string,
|
||||||
|
|
Loading…
Reference in a new issue