Skip to content

Commit

Permalink
chore: addresses comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gitanjli525 committed Sep 12, 2024
1 parent 95ddb88 commit fb6fc2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/openapi/src/openapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ Never share your secret api keys. Keep them guarded and secure.
api_models::payment_methods::PaymentMethodCollectLinkResponse,
api_models::refunds::RefundListRequest,
api_models::refunds::RefundListResponse,
api_models::refunds::RefundAggregateResponse,
api_models::payments::TimeRange,
api_models::payments::AmountFilter,
api_models::mandates::MandateRevokedResponse,
Expand Down
3 changes: 2 additions & 1 deletion crates/router/src/core/refunds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,8 @@ pub async fn get_aggregates_for_refunds(
let refund_status_with_count = db
.get_refund_status_with_count(merchant.get_id(), &time_range, merchant.storage_scheme)
.await
.change_context(errors::ApiErrorResponse::InternalServerError)?;
.change_context(errors::ApiErrorResponse::InternalServerError)
.attach_printable("Failed to find status count")?;
let mut status_map: HashMap<enums::RefundStatus, i64> =
refund_status_with_count.into_iter().collect();
for status in enums::RefundStatus::iter() {
Expand Down

0 comments on commit fb6fc2a

Please sign in to comment.