Class: SpreeCmCommissioner::WaitingRoomSessionFirebaseLoggerJob

Inherits:
ApplicationJob show all
Defined in:
app/jobs/spree_cm_commissioner/waiting_room_session_firebase_logger_job.rb

Instance Method Summary collapse

Methods included from ApplicationJobDecorator

handle_deserialization_error, prepended

Instance Method Details

#perform(options) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'app/jobs/spree_cm_commissioner/waiting_room_session_firebase_logger_job.rb', line 3

def perform(options)
  room_session = SpreeCmCommissioner::WaitingRoomSession.find(options[:room_session_id])
  waiting_guest_firebase_doc_id = options[:waiting_guest_firebase_doc_id]

  SpreeCmCommissioner::WaitingRoomSessionFirebaseLogger.call(
    room_session: room_session,
    waiting_guest_firebase_doc_id: waiting_guest_firebase_doc_id
  )
end