2020-08-07 14:09:53 -04: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 08:04:30 -04:00
|
|
|
Projects::UpdatePagesConfigurationService.new(project).execute
|
2020-08-07 14:09:53 -04:00
|
|
|
end
|
|
|
|
end
|