1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 02:19:22 +02:00
This commit is contained in:
Rob Ede
2022-09-25 21:08:34 +01:00
parent d28ab6eaa1
commit da0a806e8d
4 changed files with 7 additions and 7 deletions

View File

@ -135,7 +135,7 @@ async fn increment(session: Session, user: Option<Identity>) -> HttpResponse {
.get::<i32>("counter")
.unwrap_or(Some(0))
.map_or(1, |inner| inner + 1);
session.insert("counter", &counter).unwrap();
session.insert("counter", counter).unwrap();
HttpResponse::Ok().json(&EndpointResponse {
user_id,