From df119861c3a9aa9f091a0a5e4b0b33451cf8385f Mon Sep 17 00:00:00 2001 From: GareArc Date: Mon, 10 Mar 2025 11:50:49 -0400 Subject: [PATCH] fix: update activcation route --- api/services/billing_service.py | 4 ++-- api/services/feature_service.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/services/billing_service.py b/api/services/billing_service.py index d57791b1bb..9d35de3ce0 100644 --- a/api/services/billing_service.py +++ b/api/services/billing_service.py @@ -122,12 +122,12 @@ class BillingService: raise EducationActivateLimitError() cls.activation_rate_limit.increment_rate_limit(account.email) + params = {"account_id": account.id} json = { - "account_id": account.id, "institution": institution, "token": token, } - return BillingService._send_request("POST", "/education/", json=json) + return BillingService._send_request("POST", "/education/", json=json, params=params) @classmethod def autocomplete(cls, keywords: str, page: int = 0, limit: int = 20): diff --git a/api/services/feature_service.py b/api/services/feature_service.py index cb8f475c20..331f9b2a72 100644 --- a/api/services/feature_service.py +++ b/api/services/feature_service.py @@ -120,7 +120,7 @@ class FeatureService: features.billing.enabled = billing_info["enabled"] features.billing.subscription.plan = billing_info["subscription"]["plan"] features.billing.subscription.interval = billing_info["subscription"]["interval"] - features.billing.subscription.education = billing_info["subscription"]["education"] + features.billing.subscription.education = billing_info["subscription"].get("education", False) if "members" in billing_info: features.members.size = billing_info["members"]["size"]