mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-30 17:50:27 +02:00
9 lines
239 B
Python
9 lines
239 B
Python
import contextvars
|
|
|
|
from shared_configs.configs import POSTGRES_DEFAULT_SCHEMA
|
|
|
|
# Context variable for the current tenant id
|
|
CURRENT_TENANT_ID_CONTEXTVAR = contextvars.ContextVar(
|
|
"current_tenant_id", default=POSTGRES_DEFAULT_SCHEMA
|
|
)
|