mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
Derive item add on status from price metadata (#5389)
This commit is contained in:
@ -73,8 +73,11 @@ public class SubscriptionInfo
|
||||
Name = item.Plan.Nickname;
|
||||
Amount = item.Plan.Amount.GetValueOrDefault() / 100M;
|
||||
Interval = item.Plan.Interval;
|
||||
AddonSubscriptionItem =
|
||||
Utilities.StaticStore.IsAddonSubscriptionItem(item.Plan.Id);
|
||||
|
||||
if (item.Metadata != null)
|
||||
{
|
||||
AddonSubscriptionItem = item.Metadata.TryGetValue("isAddOn", out var value) && bool.Parse(value);
|
||||
}
|
||||
}
|
||||
|
||||
Quantity = (int)item.Quantity;
|
||||
|
Reference in New Issue
Block a user