1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-06 06:02:40 +03:00

Make the SiteConfig available in the GraphQL context

This commit is contained in:
Quentin Gliech
2024-03-29 13:24:32 +01:00
parent aa2e2229bc
commit e080932906
4 changed files with 22 additions and 3 deletions

View File

@@ -194,8 +194,12 @@ impl Options {
// Listen for SIGHUP
register_sighup(&templates, &activity_tracker)?;
let graphql_schema =
mas_handlers::graphql_schema(&pool, &policy_factory, homeserver_connection.clone());
let graphql_schema = mas_handlers::graphql_schema(
&pool,
&policy_factory,
homeserver_connection.clone(),
site_config.clone(),
);
let state = {
let mut s = AppState {