Skip to content

Commit 9c694f4

Browse files
Juan Pablo  Vargas MartinezJuan Pablo  Vargas Martinez
authored andcommitted
fix: promise-cache authentication
1 parent d6623ad commit 9c694f4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/rich-paws-rescue.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sebspark/promise-cache": minor
3+
---
4+
5+
Fix promise cache with authentication

packages/promise-cache/src/persistor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class Persistor {
7272
try {
7373
await new Promise((resolve, reject) => {
7474
this.client = CACHE_CLIENT({
75-
url: this.redis?.url,
75+
...this.redis,
7676
socket: {
7777
reconnectStrategy: (retries, cause) => {
7878
console.error(cause)

0 commit comments

Comments
 (0)