mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-18 07:05:52 +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),
|
||||
)
|
||||
|
||||
session.add(provider)
|
||||
|
||||
db.session.add(provider)
|
||||
else:
|
||||
provider.encrypted_credentials = json.dumps(credentials)
|
||||
|
||||
# delete cache
|
||||
tool_configuration.delete_tool_credentials_cache()
|
||||
|
||||
db.session.commit()
|
||||
return {"result": "success"}
|
||||
|
||||
@staticmethod
|
||||
|
Loading…
x
Reference in New Issue
Block a user