Skip to content

Commit

Permalink
use Depends with non-pydantic schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
notarious2 committed Mar 2, 2024
1 parent d71b706 commit aa82ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/registration/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

@account_router.post("/register/", summary="Register user")
async def register_user(
user_schema: UserRegisterSchema,
background_tasks: BackgroundTasks,
db_session: AsyncSession = Depends(get_async_session),
cache: aioredis.Redis = Depends(get_cache),
user_schema: UserRegisterSchema = Depends(UserRegisterSchema),
):
# check if user with username or email already exists
if await get_user_by_email_or_username(db_session, email=user_schema.email, username=user_schema.username):
Expand Down

0 comments on commit aa82ae6

Please sign in to comment.