# frozen_string_literal: true# Worker for updating project statistics.classUpdateProjectStatisticsWorkerincludeApplicationWorker# project_id - The ID of the project for which to flush the cache.# statistics - An Array containing columns from ProjectStatistics to# refresh, if empty all columns will be refreshed# rubocop: disable CodeReuse/ActiveRecorddefperform(project_id,statistics=[])project=Project.find_by(id: project_id)