fix: estimate points update (#1003)
* fix: estimate points hub * fix: estimate points update * fix: estimate points bulk_update
This commit is contained in:
parent
336220bd98
commit
1bf1b63fff
2 changed files with 2 additions and 3 deletions
|
|
@ -57,7 +57,7 @@ class BulkEstimatePointEndpoint(BaseViewSet):
|
|||
serializer = EstimateReadSerializer(estimates, many=True)
|
||||
return Response(serializer.data, status=status.HTTP_200_OK)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
capture_exception(e)
|
||||
return Response(
|
||||
{"error": "Something went wrong please try again later"},
|
||||
status=status.HTTP_400_BAD_REQUEST,
|
||||
|
|
@ -211,7 +211,7 @@ class BulkEstimatePointEndpoint(BaseViewSet):
|
|||
|
||||
try:
|
||||
EstimatePoint.objects.bulk_update(
|
||||
updated_estimate_points, ["value"], batch_size=10
|
||||
updated_estimate_points, ["value"], batch_size=10,
|
||||
)
|
||||
except IntegrityError as e:
|
||||
return Response(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue