Fix Mural API response schema (#5454)

* Fix Mural API response schema

* Fix clippy

* fix compile

* fix compile
This commit is contained in:
aecsocket
2026-03-03 17:17:44 +00:00
committed by GitHub
parent 51ceb9d851
commit 63daac917b
2 changed files with 11 additions and 8 deletions

View File

@@ -352,13 +352,16 @@ pub async fn sync_failed_mural_payouts_to_labrinth(
}
fn payout_should_be_failed(payout: &muralpay::Payout) -> bool {
let muralpay::PayoutDetails::Fiat(b) = &payout.details else {
return false;
};
matches!(
payout.details,
muralpay::PayoutDetails::Fiat(muralpay::FiatPayoutDetails {
**b,
muralpay::FiatPayoutDetails {
fiat_payout_status: muralpay::FiatPayoutStatus::Failed { .. }
| muralpay::FiatPayoutStatus::Refunded { .. },
..
})
}
)
}
@@ -394,7 +397,7 @@ mod tests {
token_amount: dec!(10.00),
token_symbol: "USDC".into(),
},
details: PayoutDetails::Fiat(FiatPayoutDetails {
details: PayoutDetails::Fiat(Box::new(FiatPayoutDetails {
fiat_and_rail_code: FiatAndRailCode::Usd,
fiat_payout_status: FiatPayoutStatus::Pending {
initiated_at: chrono::Utc::now(),
@@ -414,7 +417,7 @@ mod tests {
token_symbol: "USDC".into(),
},
developer_fee: None,
}),
})),
recipient_info: PayoutRecipientInfo::Inline {
name: "John Smith".into(),
details: InlineRecipientDetails::Fiat {