diff --git a/apps/labrinth/src/models/v3/payouts.rs b/apps/labrinth/src/models/v3/payouts.rs index 0d6c7dc7d..fc5dae83c 100644 --- a/apps/labrinth/src/models/v3/payouts.rs +++ b/apps/labrinth/src/models/v3/payouts.rs @@ -121,6 +121,7 @@ pub struct PayoutMethod { pub name: String, pub supported_countries: Vec, pub image_url: Option, + pub image_logo_url: Option, pub interval: PayoutInterval, pub fee: PayoutMethodFee, } diff --git a/apps/labrinth/src/queue/payouts.rs b/apps/labrinth/src/queue/payouts.rs index e2d448b88..d20f5c067 100644 --- a/apps/labrinth/src/queue/payouts.rs +++ b/apps/labrinth/src/queue/payouts.rs @@ -408,6 +408,11 @@ impl PayoutsQueue { .into_iter() .map(|x| x.abbr) .collect(), + image_logo_url: product + .images + .iter() + .find(|x| x.type_ == ProductImageType::Logo) + .map(|x| x.src.clone()), image_url: product .images .into_iter() @@ -486,6 +491,7 @@ impl PayoutsQueue { name: "PayPal".to_string(), supported_countries: vec!["US".to_string()], image_url: None, + image_logo_url: None, interval: PayoutInterval::Standard { min: Decimal::from(1) / Decimal::from(4), max: Decimal::from(100_000), @@ -518,6 +524,7 @@ impl PayoutsQueue { .map(|x| x.alpha2.to_string()) .collect(), image_url: None, + image_logo_url: None, interval: PayoutInterval::Standard { min: Decimal::from(1) / Decimal::from(4), max: Decimal::from(100_000),