diff --git a/src/handlers/chain_agnostic/status.rs b/src/handlers/chain_agnostic/status.rs index 8f9d0717..c03c7bed 100644 --- a/src/handlers/chain_agnostic/status.rs +++ b/src/handlers/chain_agnostic/status.rs @@ -31,7 +31,7 @@ pub struct QueryParams { pub struct StatusResponse { status: BridgingStatus, created_at: usize, - error_reason: Option, + error: Option, /// Polling interval in ms for the client check_in: Option, } @@ -76,7 +76,7 @@ async fn handler_internal( return Ok(Json(StatusResponse { status: bridging_status_item.status, created_at: bridging_status_item.created_at, - error_reason: bridging_status_item.error_reason, + error: bridging_status_item.error_reason, check_in: None, }) .into_response()); @@ -98,7 +98,7 @@ async fn handler_internal( status: bridging_status_item.status, created_at: bridging_status_item.created_at, check_in: Some(STATUS_POLLING_INTERVAL), - error_reason: None, + error: None, }) .into_response()); } else { @@ -120,7 +120,7 @@ async fn handler_internal( status: bridging_status_item.status, created_at: bridging_status_item.created_at, check_in: Some(STATUS_POLLING_INTERVAL), - error_reason: None, + error: None, }) .into_response()); }