diff --git a/src/routes/user_routes.rs b/src/routes/user_routes.rs index 632538b..bc86dd1 100644 --- a/src/routes/user_routes.rs +++ b/src/routes/user_routes.rs @@ -210,9 +210,7 @@ pub async fn refresh_auth_token(request: HttpRequest, user_id: web::Path, d None => { message_resources.push(MessageResourceDto::new_from_error_message(ERROR_INCORRECT_TOKEN)); return HttpResponse::Unauthorized().json(web::Json(message_resources)); - } - } - }, + }}}, Err(err) if matches!(err, sqlx::Error::RowNotFound) => { return HttpResponse::NotFound().json(web::Json(message_resources)); }