refactor(backend): replace String with &str in fn params

This commit is contained in:
2026-05-30 00:36:35 +03:00
parent c310d69b11
commit 882b28c883
4 changed files with 54 additions and 56 deletions

View File

@@ -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),