Class: NotificationWorkers::Partner::DeleteTemporaryStaffWorker

Inherits:
ApplicationWorker show all
Includes:
RollbarSynTokenSetterWorker
Defined in:
app/workers/notification_workers/partner/delete_temporary_staff_worker.rb

Instance Method Summary collapse

Methods inherited from ApplicationWorker

unlimited_retry

Instance Method Details

#perform(staff_id) ⇒ Object



9
10
11
12
# File 'app/workers/notification_workers/partner/delete_temporary_staff_worker.rb', line 9

def perform(staff_id)
  staff = Staff.find_by(id: staff_id)
  staff&.destroy
end