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

@@ -7,6 +7,7 @@ import type {
import { NodeConnectionType, NodeOperationError } from 'n8n-workflow';
import { redisConnectionTest, setupRedisClient } from './utils';
import type { RedisCredential } from './types';
interface Options {
jsonParseBody: boolean;
@@ -74,7 +75,7 @@ export class RedisTrigger implements INodeType {
};
async trigger(this: ITriggerFunctions): Promise<ITriggerResponse> {
const credentials = await this.getCredentials('redis');
const credentials = await this.getCredentials<RedisCredential>('redis');
const channels = (this.getNodeParameter('channels') as string).split(',');
const options = this.getNodeParameter('options') as Options;