Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasDeBruijn committed Mar 13, 2024
1 parent 7c61fdf commit 3a71cbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/chroma/src/routes/authorization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::routes::appdata::{SessionIdCache, WebData};
use actix_web::body::BoxBody;
use actix_web::dev::Payload;
use actix_web::http::StatusCode;
use actix_web::{FromRequest, HttpRequest, HttpResponse, ResponseError};
use actix_web::{FromRequest, HttpRequest, HttpResponse, ResponseError, web};
use dal::database::{ChromaScope, Database, DbResult, ServiceTokenUser, User, UserType};
use std::future::Future;
use std::pin::Pin;
Expand Down Expand Up @@ -86,7 +86,7 @@ impl FromRequest for Authorization {
})?;

// Check the cache
let session_cache: &SessionIdCache = req.app_data().unwrap();
let session_cache: &web::Data<SessionIdCache> = req.app_data().unwrap();
match session_cache.get(authorization_id).await {
Some(v) => return Ok(v),
None => {}
Expand Down

0 comments on commit 3a71cbb

Please sign in to comment.