You've already forked AstralRinth
forked from didirus/AstralRinth
add price id to active servers route
This commit is contained in:
@@ -938,6 +938,7 @@ pub async fn active_servers(
|
|||||||
struct ActiveServer {
|
struct ActiveServer {
|
||||||
pub user_id: crate::models::ids::UserId,
|
pub user_id: crate::models::ids::UserId,
|
||||||
pub server_id: String,
|
pub server_id: String,
|
||||||
|
pub price_id: crate::models::ids::ProductPriceId,
|
||||||
pub interval: PriceDuration,
|
pub interval: PriceDuration,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -948,6 +949,7 @@ pub async fn active_servers(
|
|||||||
SubscriptionMetadata::Pyro { id } => ActiveServer {
|
SubscriptionMetadata::Pyro { id } => ActiveServer {
|
||||||
user_id: x.user_id.into(),
|
user_id: x.user_id.into(),
|
||||||
server_id: id.clone(),
|
server_id: id.clone(),
|
||||||
|
price_id: x.price_id.into(),
|
||||||
interval: x.interval,
|
interval: x.interval,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user