mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-19 06:35:56 +08:00
fix: updating tool credentials does not works as expected
This commit is contained in:
parent
d815c74fc5
commit
71e0bfcbd8
@ -159,14 +159,14 @@ class BuiltinToolManageService:
|
|||||||
encrypted_credentials=json.dumps(credentials),
|
encrypted_credentials=json.dumps(credentials),
|
||||||
)
|
)
|
||||||
|
|
||||||
session.add(provider)
|
db.session.add(provider)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
provider.encrypted_credentials = json.dumps(credentials)
|
provider.encrypted_credentials = json.dumps(credentials)
|
||||||
|
|
||||||
# delete cache
|
# delete cache
|
||||||
tool_configuration.delete_tool_credentials_cache()
|
tool_configuration.delete_tool_credentials_cache()
|
||||||
|
|
||||||
|
db.session.commit()
|
||||||
return {"result": "success"}
|
return {"result": "success"}
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user