fix: fix user uuid cache hits
This commit is contained in:
parent
9e56eec021
commit
3e65cffe39
2 changed files with 2 additions and 3 deletions
|
@ -37,7 +37,7 @@ pub async fn res(
|
|||
let cache_result = data.get_cache_key(uuid.to_string()).await;
|
||||
|
||||
if let Ok(cache_hit) = cache_result {
|
||||
return Ok(HttpResponse::Ok().json(cache_hit))
|
||||
return Ok(HttpResponse::Ok().content_type("application/json").body(cache_hit))
|
||||
}
|
||||
|
||||
let row = sqlx::query_as(&format!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue