Always return status code ok.
All checks were successful
semver Build semver has succeeded
format Build format has succeeded
clippy Build clippy has succeeded
build Build build has succeeded
rust-test Build rust-test has succeeded

This commit is contained in:
Tom Alexander 2024-09-29 18:37:23 -04:00
parent 8cb28459a0
commit 9ed8905a5c
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -58,7 +58,8 @@ pub(crate) async fn hook(
}),
),
Err(_) => (
StatusCode::INTERNAL_SERVER_ERROR,
// StatusCode::INTERNAL_SERVER_ERROR,
StatusCode::OK,
Json(HookResponse {
ok: false,
message: Some("Failed to handle push event.".to_string()),
@ -67,7 +68,8 @@ pub(crate) async fn hook(
}
}
HookRequest::Unrecognized(payload) => (
StatusCode::BAD_REQUEST,
// StatusCode::BAD_REQUEST,
StatusCode::OK,
Json(HookResponse {
ok: false,
message: Some(format!("unrecognized event type: {payload}")),