mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor: Unify binary-data assertion across all nodes (no-changelog) (#5624)
This commit is contained in:
committed by
GitHub
parent
01a2160b3b
commit
5eb0d52459
@@ -52,11 +52,14 @@ export class ReadPDF implements INodeType {
|
||||
item.binary = {};
|
||||
}
|
||||
|
||||
const binaryData = await this.helpers.getBinaryDataBuffer(itemIndex, binaryPropertyName);
|
||||
const binaryDataBuffer = await this.helpers.getBinaryDataBuffer(
|
||||
itemIndex,
|
||||
binaryPropertyName,
|
||||
);
|
||||
returnData.push({
|
||||
binary: item.binary,
|
||||
|
||||
json: (await pdf(binaryData)) as unknown as IDataObject,
|
||||
json: (await pdf(binaryDataBuffer)) as unknown as IDataObject,
|
||||
});
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
|
||||
Reference in New Issue
Block a user