Sha256: 1863069fa77421d8afebaceb302e64f2e2021107b3f50c5d1d0ac12c51bc2d9e
Contents?: true
Size: 385 Bytes
Versions: 10
Compression:
Stored size: 385 Bytes
Contents
# frozen_string_literal: true module Shipit class RefreshCheckRunsJob < BackgroundJob queue_as :default def perform(params) if params[:commit_id] Commit.find(params[:commit_id]).refresh_check_runs! else stack = Stack.find(params[:stack_id]) stack.commits.order(id: :desc).limit(30).each(&:refresh_check_runs!) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems