diff --git a/api/services/feature_service.py b/api/services/feature_service.py index 13061f5a7c..9b853b8337 100644 --- a/api/services/feature_service.py +++ b/api/services/feature_service.py @@ -301,7 +301,7 @@ class FeatureService: if "knowledge_pipeline_publish_enabled" in billing_info: features.knowledge_pipeline.publish_enabled = billing_info["knowledge_pipeline_publish_enabled"] - + if "next_credit_reset_date" in billing_info: features.next_credit_reset_date = billing_info["next_credit_reset_date"] diff --git a/api/services/workspace_service.py b/api/services/workspace_service.py index cf2c6cea1c..3ee41c2e8d 100644 --- a/api/services/workspace_service.py +++ b/api/services/workspace_service.py @@ -48,7 +48,6 @@ class WorkspaceService: "replace_webapp_logo": replace_webapp_logo, } if dify_config.EDITION == "CLOUD": - tenant_info["next_credit_reset_date"] = feature.next_credit_reset_date from services.credit_pool_service import CreditPoolService