fix(inner_api/plugin/wraps): refresh user model after creation in get user function (#20704)

pull/20715/head
Yeuoly 8 months ago committed by GitHub
parent 138ad6e8b3
commit 38554c5f3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save