Class: WebflowSync::DestroyItemJob
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- WebflowSync::DestroyItemJob
- Defined in:
- app/jobs/webflow_sync/destroy_item_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(collection_id:, webflow_site_id:, webflow_item_id:) ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/jobs/webflow_sync/destroy_item_job.rb', line 5 def perform(collection_id:, webflow_site_id:, webflow_item_id:) return if WebflowSync.configuration.skip_webflow_sync return if webflow_site_id.blank? return if webflow_item_id.blank? WebflowSync::Api.new(site_id: webflow_site_id).delete_item(collection_id:, webflow_item_id:) end |