From c3b7ff7246f7f143f54c2f2f6cda63ca503aa8a4 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Tue, 19 Dec 2023 11:45:19 -0500 Subject: [PATCH] update URL to prod URL --- backend/routes/logging_utils.py | 4 ++-- backend/routes/saas_utils.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/routes/logging_utils.py b/backend/routes/logging_utils.py index 8d16558..0de34fa 100644 --- a/backend/routes/logging_utils.py +++ b/backend/routes/logging_utils.py @@ -23,8 +23,8 @@ async def send_to_saas_backend( ): if IS_PROD: async with httpx.AsyncClient() as client: - # url = "https://screenshot-to-code-saas.onrender.com/generations/store" - url = "http://localhost:8001/generations/store" + url = "https://screenshot-to-code-saas.onrender.com/generations/store" + # url = "http://localhost:8001/generations/store" data = json.dumps( { diff --git a/backend/routes/saas_utils.py b/backend/routes/saas_utils.py index 94ce340..cf6d6ac 100644 --- a/backend/routes/saas_utils.py +++ b/backend/routes/saas_utils.py @@ -10,8 +10,8 @@ async def does_user_have_subscription_credits( auth_token: str, ): async with httpx.AsyncClient() as client: - # url = "https://screenshot-to-code-saas.onrender.com/credits/has_credits" - url = "http://localhost:8001/credits/has_credits" + url = "https://screenshot-to-code-saas.onrender.com/credits/has_credits" + # url = "http://localhost:8001/credits/has_credits" headers = { "Content-Type": "application/json",