Simplify condition

This commit is contained in:
Kevin McConnell
2025-03-28 11:16:17 +00:00
parent a7380ca1d7
commit a0929ac557
+1 -6
View File
@@ -16,11 +16,6 @@ class Bucket < ApplicationRecord
private
def update_bubbles_workflow
if workflow
first_stage = workflow.stages.first
bubbles.update_all(stage_id: first_stage.id) if first_stage
else
bubbles.update_all(stage_id: nil)
end
bubbles.update_all(stage_id: workflow&.stages&.first&.id)
end
end