Skip to content

Commit

Permalink
Fix the deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayush-iitkgp committed Oct 21, 2024
1 parent be4dfcc commit e620928
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/api/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
response_model=OutDataSetPasswordSchema,
)
async def create_password(
_: Depends(jwt_token_auth), password_data: InSetPasswordSchema
password_data: InSetPasswordSchema,
_=Depends(jwt_token_auth),
) -> OutDataSetPasswordSchema:
async with async_session() as db:
return await CustomerService.set_customer_password(db, password_data)
Expand All @@ -48,7 +49,7 @@ async def login(login_data: InLoginSchema) -> OutDataLoginSchema:
)
async def change_language(
request_data: InChangePasswordSchema,
_client_verified: None = Depends(verify_client_version),
_client_verified: None = Depends(jwt_token_auth),
) -> OutDataChangePasswordSchema:
async with async_session() as db:
return await CustomerService.change_customer_language(db, request_data)
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async def set_password_input(
email: str, password: str, confirmed_password: str
) -> InSetPasswordSchema:
set_password_input = InSetPasswordSchema(
email="osefhhchnsic@protonmail.com",
email=email,
password=password,
confirm_password=confirmed_password,
)
Expand Down

0 comments on commit e620928

Please sign in to comment.