Skip to content

Commit

Permalink
fix(ioredis): fix reconnectOnError assignation on Redis connection op…
Browse files Browse the repository at this point in the history
…tions

Closes: #2668
  • Loading branch information
Romakita committed Apr 23, 2024
1 parent 8e10e9a commit 08d5de3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/orm/ioredis/src/utils/registerConnectionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export function registerConnectionProvider({provide, name = "default"}: CreateCo

setValue(sentinelsOptions, "sentinelRetryStrategy", retryStrategy);
setValue(sentinelsOptions, "redisOptions.reconnectOnError", reconnectOnError);

connection = new Redis({
name: sentinelName,
sentinels,
Expand All @@ -62,9 +63,9 @@ export function registerConnectionProvider({provide, name = "default"}: CreateCo
});
} else {
connection = new Redis({
reconnectOnError,
...redisOptions,
lazyConnect: true,
reconnectOnError
lazyConnect: true
} as RedisOptions);
}

Expand Down

0 comments on commit 08d5de3

Please sign in to comment.