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

@@ -707,7 +707,7 @@ export class Redis implements INodeType {
const clientInfo = util.promisify(client.info).bind(client);
const result = await clientInfo();
resolve(this.prepareOutputData([{ json: convertInfoToObject(result as string) }]));
resolve([[{ json: convertInfoToObject(result as string) }]]);
client.quit();
} else if (
['delete', 'get', 'keys', 'set', 'incr', 'publish', 'push', 'pop'].includes(operation)
@@ -838,7 +838,7 @@ export class Redis implements INodeType {
}
client.quit();
resolve(this.prepareOutputData(returnItems));
resolve([returnItems]);
}
} catch (error) {
reject(error);