Class: NotificationWorkers::Partner::DeleteTemporaryStaffWorker
- Inherits:
-
ApplicationWorker
- Object
- ApplicationWorker
- NotificationWorkers::Partner::DeleteTemporaryStaffWorker
- Includes:
- RollbarSynTokenSetterWorker
- Defined in:
- app/workers/notification_workers/partner/delete_temporary_staff_worker.rb
Instance Method Summary collapse
Methods inherited from ApplicationWorker
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 |