fix: inbox issue activity (#1310)

This commit is contained in:
pablohashescobar 2023-06-20 10:27:01 +05:30 committed by GitHub
parent d1d8722525
commit 8496422d20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -259,7 +259,6 @@ class InboxIssueViewSet(BaseViewSet):
if issue_serializer.is_valid(): if issue_serializer.is_valid():
current_instance = issue current_instance = issue
issue_serializer.save()
# Log all the updates # Log all the updates
requested_data = json.dumps(issue_data, cls=DjangoJSONEncoder) requested_data = json.dumps(issue_data, cls=DjangoJSONEncoder)
if issue is not None: if issue is not None:
@ -274,6 +273,7 @@ class InboxIssueViewSet(BaseViewSet):
cls=DjangoJSONEncoder, cls=DjangoJSONEncoder,
), ),
) )
issue_serializer.save()
else: else:
return Response( return Response(
issue_serializer.errors, status=status.HTTP_400_BAD_REQUEST issue_serializer.errors, status=status.HTTP_400_BAD_REQUEST