We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d389c0f commit 3b4f0eeCopy full SHA for 3b4f0ee
1 file changed
server/utils/atproto/lock.ts
@@ -55,10 +55,10 @@ export function getOAuthLock(): RuntimeLock {
55
const config = useRuntimeConfig()
56
57
// Use distributed lock in production if Upstash is configured
58
- if (!import.meta.dev && config.upstashRedisRestUrl && config.upstashRedisRestToken) {
+ if (!import.meta.dev && config.upstash?.redisRestUrl && config.upstash?.redisRestToken) {
59
const redis = new Redis({
60
- url: config.upstashRedisRestUrl,
61
- token: config.upstashRedisRestToken,
+ url: config.upstash.redisRestUrl,
+ token: config.upstash.redisRestToken,
62
})
63
return createUpstashLock(redis)
64
}
0 commit comments