mirror of https://github.com/langgenius/dify.git
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…
Reference in New Issue