Skip to content

Commit

Permalink
rename crud
Browse files Browse the repository at this point in the history
  • Loading branch information
julien4215 committed Feb 28, 2024
1 parent a6792a7 commit bb9b555
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/cruds/cruds_recommendation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from app.schemas import schemas_recommendation


async def get_recommendation(
async def get_recommendations(
db: AsyncSession,
) -> Sequence[models_recommendation.Recommendation]:
result = await db.execute(select(models_recommendation.Recommendation))
Expand Down
2 changes: 1 addition & 1 deletion app/endpoints/recommendation.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async def get_recommendation(
**The user must be authenticated to use this endpoint**
"""

return await cruds_recommendation.get_recommendation(db=db)
return await cruds_recommendation.get_recommendations(db=db)


@router.post(
Expand Down

0 comments on commit bb9b555

Please sign in to comment.