add price id to active servers route

This commit is contained in:
Jai A 2025-02-16 21:42:16 -08:00
parent 4851f18079
commit 6c4548a303
No known key found for this signature in database
GPG Key ID: 9A9F9B7250E9883C

View File

@ -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,
},
})