Skip to content

Commit

Permalink
Añade verificación para actualizar el avatar del contacto solo si no …
Browse files Browse the repository at this point in the history
…está adjunto
  • Loading branch information
nestordavalos committed Nov 13, 2024
1 parent 8c43a2a commit a7b109a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/builders/contact_inbox_with_contact_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ def find_or_create_contact_and_contact_inbox

ActiveRecord::Base.transaction(requires_new: true) do
build_contact_with_contact_inbox
update_contact_avatar(@contact) unless @contact.avatar.attached?
end
update_contact_avatar(@contact) unless @contact.avatar.attached?

@contact_inbox
end

Expand Down

0 comments on commit a7b109a

Please sign in to comment.