mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
fix(analytics): fixed response code to 501 (#3119)
Co-authored-by: Sampras Lopes <lsampras@pm.me>
This commit is contained in:
@ -938,7 +938,7 @@ pub async fn webhooks_wrapper<W: types::OutgoingWebhookType, Ctx: PaymentMethodR
|
||||
None,
|
||||
api_event,
|
||||
req,
|
||||
Some(req.method().to_string()),
|
||||
req.method(),
|
||||
);
|
||||
match api_event.clone().try_into() {
|
||||
Ok(event) => {
|
||||
|
||||
@ -41,7 +41,7 @@ pub struct ApiEvent {
|
||||
#[serde(flatten)]
|
||||
event_type: ApiEventsType,
|
||||
hs_latency: Option<u128>,
|
||||
http_method: Option<String>,
|
||||
http_method: String,
|
||||
}
|
||||
|
||||
impl ApiEvent {
|
||||
@ -59,7 +59,7 @@ impl ApiEvent {
|
||||
error: Option<serde_json::Value>,
|
||||
event_type: ApiEventsType,
|
||||
http_req: &HttpRequest,
|
||||
http_method: Option<String>,
|
||||
http_method: &http::Method,
|
||||
) -> Self {
|
||||
Self {
|
||||
merchant_id,
|
||||
@ -83,7 +83,7 @@ impl ApiEvent {
|
||||
url_path: http_req.path().to_string(),
|
||||
event_type,
|
||||
hs_latency,
|
||||
http_method,
|
||||
http_method: http_method.to_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -938,7 +938,7 @@ where
|
||||
error,
|
||||
event_type.unwrap_or(ApiEventsType::Miscellaneous),
|
||||
request,
|
||||
Some(request.method().to_string()),
|
||||
request.method(),
|
||||
);
|
||||
match api_event.clone().try_into() {
|
||||
Ok(event) => {
|
||||
|
||||
Reference in New Issue
Block a user