From 6c4548a3030cce273d4cc905ceeacdf8daca1b57 Mon Sep 17 00:00:00 2001 From: Jai A Date: Sun, 16 Feb 2025 21:42:16 -0800 Subject: [PATCH] add price id to active servers route --- apps/labrinth/src/routes/internal/billing.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/labrinth/src/routes/internal/billing.rs b/apps/labrinth/src/routes/internal/billing.rs index 19dab8a8c..51b271ba8 100644 --- a/apps/labrinth/src/routes/internal/billing.rs +++ b/apps/labrinth/src/routes/internal/billing.rs @@ -938,6 +938,7 @@ pub async fn active_servers( struct ActiveServer { pub user_id: crate::models::ids::UserId, pub server_id: String, + pub price_id: crate::models::ids::ProductPriceId, pub interval: PriceDuration, } @@ -948,6 +949,7 @@ pub async fn active_servers( SubscriptionMetadata::Pyro { id } => ActiveServer { user_id: x.user_id.into(), server_id: id.clone(), + price_id: x.price_id.into(), interval: x.interval, }, })