Переглянути джерело

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

tags/1.4.2
Yeuoly 4 місяці тому
джерело
коміт
38554c5f3e
Аккаунт користувача з таким Email не знайдено
1 змінених файлів з 1 додано та 0 видалено
  1. 1
    0
      api/controllers/inner_api/plugin/wraps.py

+ 1
- 0
api/controllers/inner_api/plugin/wraps.py Переглянути файл

@@ -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:

Завантаження…
Відмінити
Зберегти