diff --git a/src/khoj/interface/web/config.html b/src/khoj/interface/web/config.html index 3179db0b..e86204bb 100644 --- a/src/khoj/interface/web/config.html +++ b/src/khoj/interface/web/config.html @@ -178,7 +178,7 @@ {% if not is_subscribed %}
- + Subscribe diff --git a/src/khoj/routers/api.py b/src/khoj/routers/api.py index 005496b2..c4250f82 100644 --- a/src/khoj/routers/api.py +++ b/src/khoj/routers/api.py @@ -782,7 +782,6 @@ async def unsubscribe(request: Request, email: str): customer_id = customer[0].id for subscription in stripe.Subscription.list(customer=customer_id): stripe.Subscription.modify(subscription.id, cancel_at_period_end=True) - success = True else: success = False diff --git a/src/khoj/routers/web_client.py b/src/khoj/routers/web_client.py index b3150ad0..b62f6b94 100644 --- a/src/khoj/routers/web_client.py +++ b/src/khoj/routers/web_client.py @@ -149,6 +149,7 @@ def config_page(request: Request): "user_photo": user_picture, "is_subscribed": user_is_subscribed, "days_to_renewal": days_to_renewal, + "khoj_cloud_subscription_url": os.getenv("KHOJ_CLOUD_SUBSCRIPTION_URL"), }, )