Skip to content

Commit cd8a3e8

Browse files
committedNov 8, 2024·
fix(backend -> redis): fix var usage before initialization
1 parent 54da6b3 commit cd8a3e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/backend/redis/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ const ENABLE_REDIS = !process.env.NO_REDIS
66

77
const RedisClient = ENABLE_REDIS ? Redis : RedisMock
88
export { RedisClient as Redis, getRedis, getRedisOptions, generatePrefix }
9-
export const redis = getRedis(getRedisOptions())
10-
export const redisObserver = getRedis(getRedisOptions())
119
export const prefix = generatePrefix({
1210
mongoUrl: process.env.MONGO_URL,
1311
baseUrl: process.env.BASE_URL
1412
})
13+
export const redis = getRedis(getRedisOptions())
14+
export const redisObserver = getRedis(getRedisOptions())
1515

1616
export const pubsub = redisPubSub({
1717
client: redis,

0 commit comments

Comments
 (0)
Please sign in to comment.