From a0ae81df0daac6f6b4ba52ea594e7254d52349cd Mon Sep 17 00:00:00 2001 From: hijiki51 Date: Sat, 7 Dec 2024 02:19:02 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20filter=20by=20team?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- portal/app/controllers/api/admin/benchmark_jobs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal/app/controllers/api/admin/benchmark_jobs_controller.rb b/portal/app/controllers/api/admin/benchmark_jobs_controller.rb index 8094453..312d9e1 100644 --- a/portal/app/controllers/api/admin/benchmark_jobs_controller.rb +++ b/portal/app/controllers/api/admin/benchmark_jobs_controller.rb @@ -50,7 +50,7 @@ def create @benchmark_job = BenchmarkJob.create!( team_id: @team.id, instance_name: @team.availability_zone, - target: ContestantInstance.find_by(number: pb.target_number), + target: ContestantInstance.find_by(team: @team, number: pb.target_number), ) render protobuf: Isuxportal::Proto::Services::Admin::EnqueueBenchmarkJobResponse.new( job: @benchmark_job.to_pb(admin: true, team: true, detail: true)