File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 3737 parse_config ,
3838 CoreConfig ,
3939)
40+ from fixcore .db import SystemData , CurrentDatabaseVersion
4041from fixcore .db .db_access import DbAccess
4142from fixcore .db .system_data_db import EphemeralJwtSigningKey
4243from fixcore .dependencies import Dependencies , ServiceNames , TenantDependencies
@@ -128,6 +129,8 @@ def run_process(args: Namespace) -> None:
128129 cert_handler_no_ca = deps .add (ServiceNames .cert_handler , CertificateHandlerNoCA .lookup (config , temp ))
129130 verify : Union [bool , str ] = False if args .graphdb_no_ssl_verify else str (cert_handler_no_ca .ca_bundle )
130131 deps .add (ServiceNames .config , evolve (config , run = RunConfig (temp , verify )))
132+ # surrogate system data for multi-tenant setup: the real one is available per tenant
133+ deps .add (ServiceNames .system_data , SystemData ("multi-tenant" , utc (), CurrentDatabaseVersion ))
131134 deps .add (ServiceNames .event_sender , NoEventSender ())
132135 provider : TenantDependencyProvider = deps .add (
133136 ServiceNames .tenant_dependency_provider , FromRequestTenantDependencyProvider (deps )
You can’t perform that action at this time.
0 commit comments