diff --git a/src/api/invitations.py b/src/api/invitations.py index a881b3c..9a9d8a5 100644 --- a/src/api/invitations.py +++ b/src/api/invitations.py @@ -152,8 +152,8 @@ async def get_user_invitatinos(user_id: PydanticObjectId, user: CurrentUserDep) return [InvitationData.from_invitation(invitation) for invitation in invitations] -@base_router.get("/users/{user_id}/invitations/incomming") -async def get_user_incomming_invitatinos(user_id: PydanticObjectId, user: CurrentUserDep) -> list[InvitationData]: +@base_router.get("/users/{user_id}/invitations/incoming") +async def get_user_incoming_invitatinos(user_id: PydanticObjectId, user: CurrentUserDep) -> list[InvitationData]: """Get all incoming invitations for a given user. Note that this endpoint only allows you to access the invitations you received.