finish add enrollment from seat:wqs
This commit is contained in:
@@ -46,12 +46,15 @@ export const workspaceMiddleware = async (
|
||||
const user = context.get(userContext)!
|
||||
|
||||
const cacheKey = buildWorkspaceCacheKey(request, user.sub, orgId)
|
||||
const cached = await getWorkspaceFromCache(cacheKey)
|
||||
|
||||
if (cached) {
|
||||
context.set(workspaceContext, cached)
|
||||
return next()
|
||||
}
|
||||
try {
|
||||
const cached = await getWorkspaceFromCache(cacheKey)
|
||||
|
||||
if (cached) {
|
||||
context.set(workspaceContext, cached)
|
||||
return next()
|
||||
}
|
||||
} catch {}
|
||||
|
||||
console.log(`[${new Date().toISOString()}] [${requestId}] Cache miss`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user