From bb58f5c6e55f802e434d4c3f3193d58523993162 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Thu, 31 Oct 2024 15:18:12 +0800 Subject: [PATCH] fix: avoid None to be assigned to WorkflowToolProviderController as provider id --- api/core/tools/workflow_as_tool/provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/tools/workflow_as_tool/provider.py b/api/core/tools/workflow_as_tool/provider.py index c161cabf95..57bf5b0755 100644 --- a/api/core/tools/workflow_as_tool/provider.py +++ b/api/core/tools/workflow_as_tool/provider.py @@ -62,7 +62,7 @@ class WorkflowToolProviderController(ToolProviderController): credentials_schema=[], plugin_id=None, ), - provider_id=db_provider.id, + provider_id=db_provider.id or "", ) # init tools