2020-08-07 18:09:53 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class PagesUpdateConfigurationWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
|
|
|
idempotent!
|
|
|
|
feature_category :pages
|
|
|
|
|
|
|
|
def perform(project_id)
|
|
|
|
project = Project.find_by_id(project_id)
|
|
|
|
return unless project
|
|
|
|
|
2020-08-25 12:04:30 +00:00
|
|
|
Projects::UpdatePagesConfigurationService.new(project).execute
|
2020-08-07 18:09:53 +00:00
|
|
|
end
|
|
|
|
end
|