Fix redis test type

This commit is contained in:
Sam Becker 2025-02-19 19:07:17 -06:00
parent 5f8708bd17
commit 17cf0cd6db

View File

@ -3,4 +3,6 @@ import { HAS_REDIS_STORAGE } from '@/app/config';
const redis = HAS_REDIS_STORAGE ? Redis.fromEnv() : undefined;
export const testRedisConnection = () => redis?.get('test');
export const testRedisConnection = () => redis
? redis.get('test')
: Promise.reject(false);