This commit is contained in:
@ -53,8 +53,7 @@ async def callback(session: AsyncSessionDep, code: str):
|
||||
vita_user = await c.vitacore_api.findBySnils(esia_user.snils)
|
||||
patId = vita_user.patId
|
||||
except e.UnknownException:
|
||||
patId = 'b66a85f1-4aaa-4db8-942a-2de44341824e'
|
||||
# raise e.BadRequestException(detail='Patient not found') from None
|
||||
raise e.BadRequestException(detail='Patient not found') from None
|
||||
|
||||
existing_user_stmt = select(User).where(User.vita_id == patId).limit(1)
|
||||
existing_user = (
|
||||
|
||||
Reference in New Issue
Block a user