Skip to content

Commit

Permalink
fix: check tenant_id
Browse files Browse the repository at this point in the history
  • Loading branch information
GarfieldDai committed Dec 25, 2024
1 parent 5be5317 commit e44230d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/services/feature_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def get_features(cls, tenant_id: str) -> FeatureModel:

cls._fulfill_params_from_env(features)

if dify_config.BILLING_ENABLED:
if dify_config.BILLING_ENABLED and tenant_id:
cls._fulfill_params_from_billing_api(features, tenant_id)

return features
Expand Down

0 comments on commit e44230d

Please sign in to comment.