trabajo-afectivo/lib/sessions/event/ticket_overview_select.rb
2022-01-01 14:38:12 +01:00

25 lines
613 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
class Sessions::Event::TicketOverviewSelect < Sessions::Event::Base
=begin
Event module to serve spool messages and send them to new client connection.
To execute this manually, just paste the following into the browser console
App.WebSocket.send({event:'spool'})
=end
def run
return if @payload['data'].blank?
return if @payload['data']['view'].blank?
return if @session['id'].blank?
Sessions::Backend::TicketOverviewList.overview_history_append(@payload['data']['view'], @session['id'])
nil
end
end