From 165e00e0dff55cc91d3c97148ebcf9051a22a1b9 Mon Sep 17 00:00:00 2001 From: Peter Vacho Date: Sat, 4 Jan 2025 13:03:22 +0100 Subject: [PATCH] Fix typo incomming -> incoming --- src/api/invitations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.