mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(Redis Node): Add support for username auth (#12274)
This commit is contained in:
committed by
GitHub
parent
38c5ed2932
commit
64c0414ef2
@@ -15,6 +15,7 @@ import {
|
||||
getValue,
|
||||
setValue,
|
||||
} from './utils';
|
||||
import type { RedisCredential } from './types';
|
||||
|
||||
export class Redis implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
@@ -512,7 +513,7 @@ export class Redis implements INodeType {
|
||||
// have a parameter field for a path. Because it is not possible to set
|
||||
// array, object via parameter directly (should maybe be possible?!?!)
|
||||
// Should maybe have a parameter which is JSON.
|
||||
const credentials = await this.getCredentials('redis');
|
||||
const credentials = await this.getCredentials<RedisCredential>('redis');
|
||||
|
||||
const client = setupRedisClient(credentials);
|
||||
await client.connect();
|
||||
|
||||
Reference in New Issue
Block a user