diff --git a/apps/labrinth/src/queue/payouts.rs b/apps/labrinth/src/queue/payouts.rs index d814bf9c5..e2d448b88 100644 --- a/apps/labrinth/src/queue/payouts.rs +++ b/apps/labrinth/src/queue/payouts.rs @@ -651,8 +651,8 @@ impl PayoutsQueue { ) -> Result, ApiError> { #[derive(Deserialize)] struct FundingSourceMeta { - available_cents: u64, - pending_cents: u64, + available_cents: Option, + pending_cents: Option, } #[derive(Deserialize)] @@ -679,9 +679,9 @@ impl PayoutsQueue { .into_iter() .find(|x| x.method == "balance") .map(|x| AccountBalance { - available: Decimal::from(x.meta.available_cents) + available: Decimal::from(x.meta.available_cents.unwrap_or(0)) / Decimal::from(100), - pending: Decimal::from(x.meta.pending_cents) + pending: Decimal::from(x.meta.pending_cents.unwrap_or(0)) / Decimal::from(100), })) }