Modern Front-End Development for Rails, Second Edition: Ticket after_update_commit not working (page 342)

Using ActionCable directly fixed the error:

# appendix_hotwire/01/app/models/ticket.rb
after_update_commit -> do
    ActionCable.server.broadcast(
      "concert_#{concert.id}",
      { seat: id, status: status }.to_json)
 end