Sha256: 46c9e4d96caa2398a7c6dcb2ea2bdc06a43d6bfe45e2ab4f0c6d109f89d96a51
Contents?: true
Size: 355 Bytes
Versions: 8
Compression:
Stored size: 355 Bytes
Contents
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
8 entries across 8 versions & 1 rubygems