Skip to content

Commit

Permalink
fix timeout api error
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Aug 27, 2024
1 parent b4b924d commit 29c82fb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/payment/src/api/payments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ async fn get_payments(
) -> HttpResponse {
let node_id = id.identity;
let timeout_secs = query
.event_params
.timeout
.unwrap_or(params::DEFAULT_EVENT_TIMEOUT);
let after_timestamp = query.event_params.after_timestamp.map(|d| d.naive_utc());
let after_timestamp = query.after_timestamp.map(|d| d.naive_utc());
let network = match query
.network
.as_ref()
Expand All @@ -53,8 +52,8 @@ async fn get_payments(
Ok(driver) => driver,
Err(e) => return response::server_error(&e),
};
let max_events = query.event_params.max_events;
let app_session_id = &query.event_params.app_session_id;
let max_events = query.max_events;
let app_session_id = &query.app_session_id;

let dao: PaymentDao = db.as_dao();
let getter = || async {
Expand Down

0 comments on commit 29c82fb

Please sign in to comment.