module Eco module API module UseCases class DefaultCases class ResetLandingPageCase < UseCases::BaseCase def process @cases.define("reset-landing-page", type: :transform) do |people, session, options, usecase| job = session.job_group("main").new("update", usecase: usecase, type: :update, sets: :account) people.users.each do |user| user.account.landing_page_id = nil job.add(user) end job end end end end end end end