Преглед на файлове

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

tags/1.4.2
Yeuoly преди 4 месеца
родител
ревизия
38554c5f3e
No account linked to committer's email address
променени са 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:

Loading…
Отказ
Запис