mirror of
https://github.com/langgenius/dify.git
synced 2025-12-25 00:52:15 +00:00
fix(inner_api/plugin/wraps): refresh user model after creation in get user function (#20704)
This commit is contained in:
parent
138ad6e8b3
commit
38554c5f3e
@ -32,6 +32,7 @@ def get_user(tenant_id: str, user_id: str | None) -> Account | EndUser:
|
||||
)
|
||||
session.add(user_model)
|
||||
session.commit()
|
||||
session.refresh(user_model)
|
||||
else:
|
||||
user_model = AccountService.load_user(user_id)
|
||||
if not user_model:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user