finish add enrollment from seat:wqs

This commit is contained in:
2026-01-27 23:13:36 -03:00
parent ecd91dbc5e
commit 6d0d006bb0
9 changed files with 395 additions and 247 deletions

View File

@@ -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`)