Skip to content

Commit

Permalink
fix: the connection parameter should be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
juandav committed Jun 19, 2022
1 parent 155a772 commit 3825c0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/redis.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import {
REDIS_MODULE_OPTIONS_TOKEN
} from './redis.constants';

export function getRedisOptionsToken(connection: string): string {
export function getRedisOptionsToken(connection?: string): string {
return `${ connection || REDIS_MODULE_CONNECTION }_${ REDIS_MODULE_OPTIONS_TOKEN }`;
}

export function getRedisConnectionToken(connection: string): string {
export function getRedisConnectionToken(connection?: string): string {
return `${ connection || REDIS_MODULE_CONNECTION }_${ REDIS_MODULE_CONNECTION_TOKEN }`;
}

Expand Down

0 comments on commit 3825c0c

Please sign in to comment.