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