Skip to content

Commit

Permalink
fix: redis connection
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixNgFender committed Apr 15, 2024
1 parent 88b5a6c commit 3e0cf77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infra/redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if (process.env.NEXT_PHASE !== PHASE_PRODUCTION_BUILD && !redis.isOpen) {
await errorHandler.handleError(err);
})
.on('ready', () => logger.info('Redis Client Ready'));
await (async () => {
(async () => {
await redis.connect();
})();
}
Expand Down

0 comments on commit 3e0cf77

Please sign in to comment.