Fix redis test type
This commit is contained in:
parent
5f8708bd17
commit
17cf0cd6db
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user