Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

Hotfix/usage update optimization (#1162)

Athulfa926321f49c
diff --git a/platform-service/src/unstract/platform_service/controller/platform.py b/platform-service/src/unstract/platform_service/controller/platform.py
index 83869c026..159563368 100644
--- a/platform-service/src/unstract/platform_service/controller/platform.py
+++ b/platform-service/src/unstract/platform_service/controller/platform.py
@@ -202,6 +202,10 @@ def page_usage() -> Any:
stripe_subscription_id,
)
+ stripe_subscription_id = (
+ stripe_subscription_id if stripe_subscription_id else "trial"
+ )
+
# Insert or update data in the subscription_usage table
subscription_usage_query = f"""
INSERT INTO