This commit is contained in:
franklinblanco 2022-07-07 20:23:35 -04:00
parent ba2594b84c
commit 813745b0cc
1 changed files with 1 additions and 3 deletions

View File

@ -210,9 +210,7 @@ pub async fn refresh_auth_token(request: HttpRequest, user_id: web::Path<i32>, d
None => { None => {
message_resources.push(MessageResourceDto::new_from_error_message(ERROR_INCORRECT_TOKEN)); message_resources.push(MessageResourceDto::new_from_error_message(ERROR_INCORRECT_TOKEN));
return HttpResponse::Unauthorized().json(web::Json(message_resources)); return HttpResponse::Unauthorized().json(web::Json(message_resources));
} }}},
}
},
Err(err) if matches!(err, sqlx::Error::RowNotFound) => { Err(err) if matches!(err, sqlx::Error::RowNotFound) => {
return HttpResponse::NotFound().json(web::Json(message_resources)); return HttpResponse::NotFound().json(web::Json(message_resources));
} }