From e9b6d285917ab0b104cd7cedd6bafb6b355ba8ce Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Sun, 26 Jan 2025 00:11:30 -0500 Subject: [PATCH] Updated Types and Fixed Imports --- cache-handler.mjs | 2 +- lib/redis.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cache-handler.mjs b/cache-handler.mjs index d024d1c..a6debc3 100644 --- a/cache-handler.mjs +++ b/cache-handler.mjs @@ -1,4 +1,4 @@ -import { redis } from '@/lib/redis'; +import redis from './lib/redis' export default class CacheHandler { constructor(options) { diff --git a/lib/redis.ts b/lib/redis.ts index 6076321..a91fa6a 100644 --- a/lib/redis.ts +++ b/lib/redis.ts @@ -1,6 +1,6 @@ import Redis from 'ioredis'; -let redis; +let redis: Redis | null = null; if (!redis) { redis = new Redis(process.env.REDIS_URL!);