Skip to content

Commit

Permalink
fix(ioredis): add try/catch for error handling in connect method
Browse files Browse the repository at this point in the history
  • Loading branch information
ygpark80 committed Apr 24, 2024
1 parent fce493f commit bb2fe9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/orm/ioredis/src/utils/registerConnectionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export function registerConnectionProvider({provide, name = "default"}: CreateCo
} as RedisOptions);
}

await connection.connect();
try {
await connection.connect();
} catch (e) {}

logger.info("Connected to redis database...");

Expand Down

0 comments on commit bb2fe9a

Please sign in to comment.