user.billing: add support for yearly subscriptions

This commit is contained in:
Luna Mendes 2018-11-21 20:28:09 -03:00
parent 0a29d3156a
commit 15b8ee1db9
1 changed files with 3 additions and 1 deletions

View File

@ -334,7 +334,9 @@ async def _create_subscription():
period_end = {
'premium_month_tier_1': '1 month',
'premium_month_tier_2': '1 month'
'premium_month_tier_2': '1 month',
'premium_year_tier_1': '1 year',
'premium_year_tier_2': '1 year',
}[plan_id]
new_id = get_snowflake()