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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user