fix(GitHub Node): Fix binary data not being returned (#4017)

Fix binary data not being returned in Github node
This commit is contained in:
Jonathan Bennetts 2022-09-03 12:35:44 +01:00 committed by GitHub
parent 6216132ae2
commit 5753110402
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2137,8 +2137,7 @@ export class Github implements INodeType {
// but the incoming data does not get changed.
Object.assign(newItem.binary as object, items[i].binary!);
}
const { content, path } = responseData[i].json;
const { content, path } = responseData;
newItem.binary![binaryPropertyName] = await this.helpers.prepareBinaryData(
Buffer.from(content as string, 'base64'),
path as string,