Skip to content

Commit

Permalink
fix: removed stupid brackets breaking mail confirmation endpoint (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
corp-0 authored Feb 23, 2024
1 parent b56e567 commit cb5031f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accounts/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class ConfirmAccountView(GenericAPIView):
serializer_class = ConfirmAccountSerializer

def post(self, request):
serializer = self.serializer_class(data={request.data})
serializer = self.serializer_class(data=request.data)

if not serializer.is_valid():
return ErrorResponse(serializer.errors, status.HTTP_400_BAD_REQUEST)
Expand Down

0 comments on commit cb5031f

Please sign in to comment.