mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 01:18:05 +08:00
refactor(trigger): streamline trigger provider verification and update imports
- Updated `TriggerSubscriptionBuilderVerifyApi` to directly return the result of `verify_trigger_subscription_builder`, improving clarity. - Refactored import statement in `trigger_plugin/__init__.py` to point to the correct module, enhancing code organization. - Removed the obsolete `node.py` file, cleaning up the codebase by eliminating unused components. These changes enhance the maintainability and clarity of the trigger provider functionality.
This commit is contained in:
@ -117,13 +117,12 @@ class TriggerSubscriptionBuilderVerifyApi(Resource):
|
||||
credentials=args.get("credentials", None),
|
||||
),
|
||||
)
|
||||
TriggerSubscriptionBuilderService.verify_trigger_subscription_builder(
|
||||
return TriggerSubscriptionBuilderService.verify_trigger_subscription_builder(
|
||||
tenant_id=user.current_tenant_id,
|
||||
user_id=user.id,
|
||||
provider_id=TriggerProviderID(provider),
|
||||
subscription_builder_id=subscription_builder_id,
|
||||
)
|
||||
return 200
|
||||
except Exception as e:
|
||||
logger.exception("Error verifying provider credential", exc_info=e)
|
||||
raise
|
||||
|
||||
Reference in New Issue
Block a user