refactor(core): Deprecate prepareOutputData (no-changelog) (#7091)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-09-05 12:59:02 +02:00
committed by GitHub
parent c04a996fb4
commit 6aa7b93473
241 changed files with 331 additions and 379 deletions

View File

@@ -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 },
},
]);
],
];
}
}