From 5dce9e04343739c1685eddb8cbefb0f69299118c Mon Sep 17 00:00:00 2001 From: NarayanBavisetti Date: Wed, 1 Nov 2023 18:16:44 +0530 Subject: [PATCH] chore: unarchived issue message corrected --- apiserver/plane/api/views/issue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apiserver/plane/api/views/issue.py b/apiserver/plane/api/views/issue.py index ae785578f..a6a03c16c 100644 --- a/apiserver/plane/api/views/issue.py +++ b/apiserver/plane/api/views/issue.py @@ -1086,8 +1086,6 @@ class IssueArchiveViewSet(BaseViewSet): archived_at__isnull=False, pk=pk, ) - issue.archived_at = None - issue.save() issue_activity.delay( type="issue.activity.updated", requested_data=json.dumps({"archived_at": None}), @@ -1099,6 +1097,8 @@ class IssueArchiveViewSet(BaseViewSet): ), epoch=int(timezone.now().timestamp()), ) + issue.archived_at = None + issue.save() return Response(IssueSerializer(issue).data, status=status.HTTP_200_OK)