Skip to content

Commit ebf040f

Browse files
committed
Use the correct key for showing quota used. (Fixes #582)
1 parent 80e5b21 commit ebf040f

File tree

1 file changed

+1
-1
lines changed
  • src/thunderbird_accounts/subscription

1 file changed

+1
-1
lines changed

src/thunderbird_accounts/subscription/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def get_subscription_plan_info(request: Request):
244244
stalwart_client = MailClient()
245245
account = stalwart_client.get_account(request.user.stalwart_primary_email)
246246
quota = account.get('quota', 0)
247-
used_quota = account.get('used_quota', 0)
247+
used_quota = account.get('usedQuota', 0)
248248
except Exception as e:
249249
logging.error(f'Error getting used quota: {e}')
250250
return JsonResponse({'success': False, 'error': 'Error getting mail storage used quota'}, status=500)

0 commit comments

Comments
 (0)