endpoint return fix

This commit is contained in:
kdeng00 committed 2025-05-20 20:15:22 -04:00
1 parent 9562b4fabf
commit 3e04a6afb8
1 file changed
+2 -2
+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 {