Fix accept invitation return

This commit is contained in:
Peter Vacho 2024-12-29 14:59:01 +01:00
parent 80d8fd5231
commit b6052eceb9
Signed by: school
GPG key ID: 8CFC3837052871B4

View file

@ -237,7 +237,7 @@ async def accept_invitation(invitation_id: PydanticObjectId, user: CurrentUserDe
) )
notification = await notification.create() notification = await notification.create()
return Response(status.HTTP_204_NO_CONTENT) return Response(status_code=status.HTTP_204_NO_CONTENT)
@invitations_router.post("{invitation_id}/decline") @invitations_router.post("{invitation_id}/decline")