From 8fa2e9b60b61518c850bbda2ff5ddcf931c00899 Mon Sep 17 00:00:00 2001 From: NarayanBavisetti Date: Fri, 24 May 2024 13:16:41 +0530 Subject: [PATCH] chore: estimate point response change --- apiserver/plane/app/urls/estimate.py | 2 +- apiserver/plane/app/views/estimate/base.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apiserver/plane/app/urls/estimate.py b/apiserver/plane/app/urls/estimate.py index d5a87c413..88f1cec9f 100644 --- a/apiserver/plane/app/urls/estimate.py +++ b/apiserver/plane/app/urls/estimate.py @@ -38,6 +38,6 @@ urlpatterns = [ path( "workspaces//projects//estimates//estimate-point//", DeleteEstimatePoint.as_view({"patch": "partial_update"}), - name="bulk-create-estimate-points", + name="delete-estimate-points", ), ] diff --git a/apiserver/plane/app/views/estimate/base.py b/apiserver/plane/app/views/estimate/base.py index bfe4e91df..f79aac8c9 100644 --- a/apiserver/plane/app/views/estimate/base.py +++ b/apiserver/plane/app/views/estimate/base.py @@ -224,4 +224,7 @@ class DeleteEstimatePoint(BaseViewSet): old_estimate_point.delete() - return Response(status=status.HTTP_204_NO_CONTENT) + return Response( + EstimatePointSerializer(updated_estimate_points, many=True).data, + status=status.HTTP_200_OK, + )