From ea607c1a04e71ebc20ce771c1bea59d69ea517c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Talbot?= <108630700+fetchfern@users.noreply.github.com> Date: Mon, 8 Sep 2025 13:34:51 +0100 Subject: [PATCH] Include Tremendous image_logo_url (#4349) --- apps/labrinth/src/models/v3/payouts.rs | 1 + apps/labrinth/src/queue/payouts.rs | 7 +++++++ 2 files changed, 8 insertions(+) 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),