ticket_overview_select.rb 536 B

1234567891011121314151617181920212223
  1. class Sessions::Event::TicketOverviewSelect < Sessions::Event::Base
  2. =begin
  3. Event module to serve spool messages and send them to new client connection.
  4. To execute this manually, just paste the following into the browser console
  5. App.WebSocket.send({event:'spool'})
  6. =end
  7. def run
  8. return if @payload['data'].blank?
  9. return if @payload['data']['view'].blank?
  10. return if @session['id'].blank?
  11. Sessions::Backend::TicketOverviewList.overview_history_append(@payload['data']['view'], @session['id'])
  12. nil
  13. end
  14. end