Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db12d2397e
|
@@ -77,14 +77,17 @@ pub(crate) async fn hook(
|
|||||||
message: None,
|
message: None,
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
Err(_) => (
|
Err(e) => {
|
||||||
|
tracing::error!("Failed to handle push event: {}", e);
|
||||||
|
(
|
||||||
// StatusCode::INTERNAL_SERVER_ERROR,
|
// StatusCode::INTERNAL_SERVER_ERROR,
|
||||||
StatusCode::OK,
|
StatusCode::OK,
|
||||||
Json(HookResponse {
|
Json(HookResponse {
|
||||||
ok: false,
|
ok: false,
|
||||||
message: Some("Failed to handle push event.".to_string()),
|
message: Some("Failed to handle push event.".to_string()),
|
||||||
}),
|
}),
|
||||||
),
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
HookRequest::Unrecognized(payload) => (
|
HookRequest::Unrecognized(payload) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user