remove graphQL context from main.rs

This commit is contained in:
Andrea Toska 2025-05-15 22:02:17 +02:00
commit 3a7dbde2dd
No known key found for this signature in database
GPG key ID: 5B3C83807CCBE9A2
2 changed files with 6 additions and 10 deletions

View file

@ -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;

View file

@ -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 youre preloading a static API key
})
.manage(Schema::new(
Query,
EmptyMutation::new(),