Skip to content

Commit

Permalink
reverted unwanted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
opaduchak committed Aug 28, 2024
1 parent 07ae799 commit aa42239
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions api/metrics/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,13 @@ class CountedAuthUsageView(JSONAPIBaseView):
serializer_class = CountedAuthUsageSerializer

def post(self, request, *args, **kwargs):
# serializer = self.serializer_class(data=request.data)
# serializer.is_valid(raise_exception=True)
# session_id, user_is_authenticated = self._get_session_id(
# request,
# client_session_id=serializer.validated_data.get('client_session_id'),
# )
# serializer.save(session_id=session_id, user_is_authenticated=user_is_authenticated)
serializer = self.serializer_class(data=request.data)
serializer.is_valid(raise_exception=True)
session_id, user_is_authenticated = self._get_session_id(
request,
client_session_id=serializer.validated_data.get('client_session_id'),
)
serializer.save(session_id=session_id, user_is_authenticated=user_is_authenticated)
return HttpResponse(status=201)

def _get_session_id(self, request, client_session_id=None):
Expand Down

0 comments on commit aa42239

Please sign in to comment.