Skip to content

Commit

Permalink
cleanup debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tmfrnz committed May 24, 2023
1 parent 3391b78 commit 3a7b9b7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions app/models/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,6 @@ def notifiable_user_measures(user_id:)
if: [:task?, :relationship_updated?]

def queue_task_updated_notifications!(user_id: ::PaperTrail.request.whodunnit)
puts "queue_task_updated_notifications - task? #{task?}" # true
puts "queue_task_updated_notifications - is_archive? #{is_archive?}" # false
puts "queue_task_updated_notifications - notifications? #{notifications?}" # true
puts "queue_task_updated_notifications - draft? #{draft?}" # false
puts "queue_task_updated_notifications - saved_change_to_attribute?(:draft) #{saved_change_to_attribute?(:draft)}" # false
puts "queue_task_updated_notifications - (saved_changes.keys & Measure.notifiable_attribute_names).any? #{(saved_changes.keys & Measure.notifiable_attribute_names).any?}" # false
puts "queue_task_updated_notifications - saved_changes.keys #{saved_changes.keys.join(', ')}" #
puts "queue_task_updated_notifications - relationship_updated? #{relationship_updated?}" # false
puts "queue_task_updated_notifications - saved_change_to_attribute?(:relationship_updated_at) #{saved_change_to_attribute?(:relationship_updated_at)}" # false
puts "queue_task_updated_notifications - notify? #{notify?}" # false
return unless notify?

delete_existing_task_notifications!(user_id:)
Expand Down

0 comments on commit 3a7b9b7

Please sign in to comment.