Skip to content

Commit

Permalink
fix: redis client is closed (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppodds authored Jun 22, 2023
2 parents da103c8 + cc073d2 commit 9837f38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/backend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ async function bootstrap() {
};
if (process.env.NODE_ENV === 'production') {
try {
const redisClient = await createClient({
const redisClient = createClient({
url: process.env.REDIS_URL,
});
await redisClient.connect();
const redisStore = new RedisStore({
client: redisClient,
prefix: 'session:',
Expand Down

0 comments on commit 9837f38

Please sign in to comment.