endpoint return fix

This commit is contained in:
kdeng00
2025-05-20 20:15:22 -04:00
parent 9562b4fabf
commit 3e04a6afb8
+2 -2
View File
@@ -351,13 +351,13 @@ pub mod endpoint {
}
Err(err) => {
response.message = err.to_string();
(axum::http::StatusCode::OK, response)
(axum::http::StatusCode::BAD_REQUEST, response)
}
}
}
Err(err) => {
response.message = err.to_string();
(axum::http::StatusCode::OK, response)
(axum::http::StatusCode::BAD_REQUEST, response)
}
}
} else {