mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core)!: Make getBinaryStream async (#7247)
Story: [PAY-846](https://linear.app/n8n/issue/PAY-846) | Related: https://github.com/n8n-io/n8n/pull/7225 For the S3 backend for external storage of binary data and execution data, the `getAsStream` method in the binary data manager interface used by FS and S3 will need to become async. This is a breaking change for nodes-base.
This commit is contained in:
@@ -486,7 +486,7 @@ export class Crypto implements INodeType {
|
||||
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i);
|
||||
const binaryData = this.helpers.assertBinaryData(i, binaryPropertyName);
|
||||
if (binaryData.id) {
|
||||
const binaryStream = this.helpers.getBinaryStream(binaryData.id);
|
||||
const binaryStream = await this.helpers.getBinaryStream(binaryData.id);
|
||||
hashOrHmac.setEncoding(encoding);
|
||||
await pipeline(binaryStream, hashOrHmac);
|
||||
newValue = hashOrHmac.read();
|
||||
|
||||
Reference in New Issue
Block a user