Skip to content

Commit

Permalink
CV2-6040: applu PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
melsawy committed Feb 7, 2025
1 parent 85955f1 commit 0c39fe3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/bot/smooch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,9 @@ def self.inherit_status_and_send_report(rid)
s = target.annotations.where(annotation_type: 'verification_status').last&.load
status = parent.last_verification_status
if !s.nil? && s.status != status
RequestStore.store[:bypass_status_publish_check] = true
s.status = status
s.bypass_status_publish_check = true
s.save
RequestStore.store[:bypass_status_publish_check] = false
end

# A relationship created by the Smooch Bot or Alegre Bot is related to search results (unless it's a suggestion that was confirmed), so the user has already received the report as a search result... no need to send another report
Expand Down

0 comments on commit 0c39fe3

Please sign in to comment.