From a918511b5940ba6124ffafd1b98f7c22b1e13737 Mon Sep 17 00:00:00 2001 From: NarayanBavisetti Date: Mon, 27 May 2024 17:07:05 +0530 Subject: [PATCH] chore: update key value pair --- apiserver/plane/app/views/estimate/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apiserver/plane/app/views/estimate/base.py b/apiserver/plane/app/views/estimate/base.py index 77557e2b4..53b1085fb 100644 --- a/apiserver/plane/app/views/estimate/base.py +++ b/apiserver/plane/app/views/estimate/base.py @@ -146,11 +146,14 @@ class BulkEstimatePointEndpoint(BaseViewSet): estimate_point.value = estimate_point_data[0].get( "value", estimate_point.value ) + estimate_point.key = estimate_point_data[0].get( + "key", estimate_point.key + ) updated_estimate_points.append(estimate_point) EstimatePoint.objects.bulk_update( updated_estimate_points, - ["value"], + ["key", "value"], batch_size=10, )