chore: estimate point response change

This commit is contained in:
NarayanBavisetti 2024-05-24 13:16:41 +05:30
parent ca9529cfa6
commit 8fa2e9b60b
2 changed files with 5 additions and 2 deletions

View File

@ -38,6 +38,6 @@ urlpatterns = [
path( path(
"workspaces/<str:slug>/projects/<uuid:project_id>/estimates/<uuid:estimate_id>/estimate-point/<estimate_point_id>/", "workspaces/<str:slug>/projects/<uuid:project_id>/estimates/<uuid:estimate_id>/estimate-point/<estimate_point_id>/",
DeleteEstimatePoint.as_view({"patch": "partial_update"}), DeleteEstimatePoint.as_view({"patch": "partial_update"}),
name="bulk-create-estimate-points", name="delete-estimate-points",
), ),
] ]

View File

@ -224,4 +224,7 @@ class DeleteEstimatePoint(BaseViewSet):
old_estimate_point.delete() 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,
)