Class: CollavreGithub::MarkdownSyncJob
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- CollavreGithub::MarkdownSyncJob
- Defined in:
- app/jobs/collavre_github/markdown_sync_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(repository_link_id, push_payload) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/jobs/collavre_github/markdown_sync_job.rb', line 6 def perform(repository_link_id, push_payload) link = CollavreGithub::RepositoryLink.find_by(id: repository_link_id) return unless link&.markdown_sync_enabled? CollavreGithub::MarkdownSync::IncrementalSyncService.new( repository_link: link, push_payload: push_payload ).call end |