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)