Skip to content

Commit

Permalink
Bugfix: [nakago-ws] non-primitive cast
Browse files Browse the repository at this point in the history
  • Loading branch information
bkonkle committed Sep 11, 2024
1 parent ce523d0 commit cf0d56d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- `nakago-ws` - Handlers now accept a new Token type, which contains the JWT string and the Registered Claims for use in more complex authorization scenarios.
- `nakago-async-graphql` - Update `nakago-axum`

## [0.23.0]

Expand Down
2 changes: 1 addition & 1 deletion examples/async-graphql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ figment = { version = "0.10", features = ["env", "toml", "yaml", "json"] }
futures = "0.3"
hyper = "1.0"
log = "0.4"
nakago-async-graphql = "0.23"
nakago-async-graphql = "0.24"
nakago-axum = "0.24"
nakago-derive = "0.23"
nakago-figment = "0.23"
Expand Down
4 changes: 3 additions & 1 deletion examples/async-graphql/src/events/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ impl Provider<Box<dyn nakago_ws::Handler<Session>>> for Provide {
let connections = i.get::<Connections<Session>>().await?;
let users = i.get::<Box<dyn users::Service>>().await?;

Ok(Arc::new(Box::new(Handler { connections, users })))
let temp = Box::new(Handler { connections, users });

Ok(Arc::new(temp))
}
}
2 changes: 1 addition & 1 deletion nakago_async_graphql/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nakago-async-graphql"
version = "0.23.0"
version = "0.24.0"
description = "An Async-GraphQL integration for Nakago"
documentation = "https://docs.rs/nakago-async-graphql/"
license.workspace = true
Expand Down

0 comments on commit cf0d56d

Please sign in to comment.