Skip to content

Commit

Permalink
Disable the schedule broadcasts - they are buggy
Browse files Browse the repository at this point in the history
  • Loading branch information
Rockster160 committed Oct 29, 2024
1 parent 47bf2a8 commit 3635ede
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/service/jil/methods/schedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def data(details={})
private

def broadcast(schedule, action)
hash = schedule.is_a?(::Hash) ? schedule : schedule.serialize
::Jil.trigger(@jil.user, :schedule, hash.merge(action: action))
# hash = schedule.is_a?(::Hash) ? schedule : schedule.serialize
# ::Jil.trigger(@jil.user, :schedule, hash.merge(action: action))
end

def schedules
Expand Down
2 changes: 1 addition & 1 deletion app/service/jil/schedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def add_schedule(user, execute_at, trigger, data)
end

def broadcast(schedule, action)
::Jil.trigger(schedule.user, :schedule, schedule.serialize.merge(action: action))
# ::Jil.trigger(schedule.user, :schedule, schedule.serialize.merge(action: action))
schedule
end

Expand Down

0 comments on commit 3635ede

Please sign in to comment.