From a8d38d8ca6d081f44870d90bcf895f2e7cc1e536 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Guerra Date: Thu, 19 Dec 2024 11:56:35 -0300 Subject: [PATCH] fix: avoid deleting manual efforts while syncing demand --- app/controllers/demands_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/demands_controller.rb b/app/controllers/demands_controller.rb index 4b65272d9..6cd865188 100644 --- a/app/controllers/demands_controller.rb +++ b/app/controllers/demands_controller.rb @@ -106,7 +106,7 @@ def demand_efforts def clean_assignments_efforts @demand.item_assignments.destroy_all - @demand.demand_efforts.destroy_all + @demand.demand_efforts.where(automatic_update: true).destroy_all end def read_demand_children