diff --git a/src/graphql/mod.rs b/src/graphql/mod.rs index 363d008..4e4a9a0 100644 --- a/src/graphql/mod.rs +++ b/src/graphql/mod.rs @@ -64,12 +64,12 @@ struct UserInfo { #[derive(GraphQLObject)] #[graphql(description = "User information from a username")] -struct UserInfoWithPId { - username: String, - account_level: i32, - nex_password: String, - mii_data: String, - pid: i32, +pub struct UserInfoWithPId { + pub username: String, + pub account_level: i32, + pub nex_password: String, + pub mii_data: String, + pub pid: i32, } pub struct Query; diff --git a/src/main.rs b/src/main.rs index ec2a26c..25882b9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -141,10 +141,6 @@ async fn launch() -> _ { .manage(S3ClientState { client: Arc::new(s3_client), }) - .manage(graphql::Context { - pool: graph_pool, - api_key: None, // or Some(...) if you’re preloading a static API key - }) .manage(Schema::new( Query, EmptyMutation::new(),