Skip to content

Commit

Permalink
CV2-4799 & CV2-4799 sentry issues (#1939)
Browse files Browse the repository at this point in the history
* CV2-4799: sentry issue

* CV2-4832: sentry issue
  • Loading branch information
melsawy authored Jul 1, 2024
1 parent f220add commit cbb1f54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/mailers/feed_invitation_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class FeedInvitationMailer < ApplicationMailer

def notify(record_id)
record = FeedInvitation.find_by_id record_id
return if record.nil?
@recipient = record.email
@user = record.user
@feed = record.feed
Expand Down
2 changes: 1 addition & 1 deletion app/models/concerns/smooch_menus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def send_message_to_user_with_main_menu_appended(uid, text, workflow, language,
allowed_types = ['query_state', 'subscription_state', 'custom_resource']
['smooch_state_main', 'smooch_state_secondary'].each_with_index do |state, i|
rows = []
options = workflow[state].to_h['smooch_menu_options'].to_a
options = begin workflow[state].to_h['smooch_menu_options'].to_a rescue [] end
next if options.empty?
options.select{ |o| allowed_types.include?(o['smooch_menu_option_value']) }.each do |option|
title = option['smooch_menu_option_label']
Expand Down

0 comments on commit cbb1f54

Please sign in to comment.