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