mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Deprecate prepareOutputData (no-changelog) (#7091)
This commit is contained in:
committed by
GitHub
parent
c04a996fb4
commit
6aa7b93473
@@ -413,17 +413,19 @@ export class QuickChart implements INodeType {
|
||||
let mimeType = response.headers['content-type'] as string | undefined;
|
||||
mimeType = mimeType ? mimeType.split(';').find((value) => value.includes('/')) : undefined;
|
||||
|
||||
return this.prepareOutputData([
|
||||
{
|
||||
binary: {
|
||||
[output]: await this.helpers.prepareBinaryData(
|
||||
response.body as Buffer,
|
||||
undefined,
|
||||
mimeType,
|
||||
),
|
||||
return [
|
||||
[
|
||||
{
|
||||
binary: {
|
||||
[output]: await this.helpers.prepareBinaryData(
|
||||
response.body as Buffer,
|
||||
undefined,
|
||||
mimeType,
|
||||
),
|
||||
},
|
||||
json: { chart },
|
||||
},
|
||||
json: { chart },
|
||||
},
|
||||
]);
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user