fix(Redis Node): Add support for username auth (#12274)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-12-19 10:58:26 +01:00
committed by GitHub
parent 38c5ed2932
commit 64c0414ef2
7 changed files with 118 additions and 25 deletions

View File

@@ -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();