Skip to content

Commit

Permalink
Do not raise exception if child item can't inherit status from parent…
Browse files Browse the repository at this point in the history
… item. (#1905)

Otherwise, an exception can prevent the report from being sent.

Fixes: CV2-4656.
  • Loading branch information
caiosba committed May 30, 2024
1 parent c9243fc commit 0518456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/bot/smooch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def self.inherit_status_and_send_report(rid)
status = parent.last_verification_status
if !s.nil? && s.status != status
s.status = status
s.save!
s.save
end
::Bot::Smooch.send_report_from_parent_to_child(parent.id, target.id)
end
Expand Down

0 comments on commit 0518456

Please sign in to comment.