fix(Edit Image Node): Make node work with binary-data-mode 'filesystem' (#3274)

This commit is contained in:
Jan Oberhauser 2022-05-10 10:47:37 +02:00 committed by GitHub
parent b3dc6d9d9c
commit a4db0d051b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1383,7 +1383,10 @@ export class EditImage implements INodeType {
return reject(error);
}
newItem.binary![dataPropertyName as string].data = (await this.helpers.prepareBinaryData(Buffer.from(buffer))).data;
const binaryData = await this.helpers.prepareBinaryData(Buffer.from(buffer));
newItem.binary![dataPropertyName as string] = {
...newItem.binary![dataPropertyName as string], ...binaryData
}
return resolve(newItem);
});