Skip to content

Commit 3b4f0ee

Browse files
committed
chore: fix correct object
1 parent d389c0f commit 3b4f0ee

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

server/utils/atproto/lock.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ export function getOAuthLock(): RuntimeLock {
5555
const config = useRuntimeConfig()
5656

5757
// Use distributed lock in production if Upstash is configured
58-
if (!import.meta.dev && config.upstashRedisRestUrl && config.upstashRedisRestToken) {
58+
if (!import.meta.dev && config.upstash?.redisRestUrl && config.upstash?.redisRestToken) {
5959
const redis = new Redis({
60-
url: config.upstashRedisRestUrl,
61-
token: config.upstashRedisRestToken,
60+
url: config.upstash.redisRestUrl,
61+
token: config.upstash.redisRestToken,
6262
})
6363
return createUpstashLock(redis)
6464
}

0 commit comments

Comments
 (0)