refactor(backend): replace String with &str in fn params
This commit is contained in:
@@ -27,7 +27,7 @@ pub async fn mw_ctx_resolver(
|
||||
|
||||
let result_ctx = match auth_token {
|
||||
Some(token) => user_repository
|
||||
.get_session(token)
|
||||
.get_session(&token)
|
||||
.await
|
||||
.map(|s| Ctx::new(s.user_id)),
|
||||
None => Err(LoftError::AuthFailNoAuthTokenCookie),
|
||||
|
||||
Reference in New Issue
Block a user