mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(Edit Image Node): Make node work with binary-data-mode 'filesystem' (#3274)
This commit is contained in:
@@ -1383,7 +1383,10 @@ export class EditImage implements INodeType {
|
|||||||
return reject(error);
|
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);
|
return resolve(newItem);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user