From 198def949b2f8b219f7ca733fc09b658ae110e7c Mon Sep 17 00:00:00 2001 From: Wedge Date: Fri, 10 Jun 2016 21:56:03 +0300 Subject: [PATCH] Typo fix --- app/controllers/api/v1/jobs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/jobs_controller.rb b/app/controllers/api/v1/jobs_controller.rb index acbd5476a..946bc7588 100644 --- a/app/controllers/api/v1/jobs_controller.rb +++ b/app/controllers/api/v1/jobs_controller.rb @@ -104,7 +104,7 @@ class Api::V1::JobsController < Api::V1::BaseController def clear_stale_builders BuildList.transaction do BuildList.where(["updated_at < ?", 120.seconds.ago]).where(status: BuildList::BUILD_PENDING).where.not(builder: nil).find_each(batch_size: 50) do |bl| - bl.update_column(builder_id: nil) + bl.update_column(:builder_id, nil) end end end