mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
fix(Edit Image Node): Make node work with binary-data-mode 'filesystem' (#3274)
This commit is contained in:
parent
b3dc6d9d9c
commit
a4db0d051b
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue