diff --git a/server/src/api.rs b/server/src/api.rs index 87f52a3..aee7640 100644 --- a/server/src/api.rs +++ b/server/src/api.rs @@ -402,10 +402,10 @@ async fn job_restart_in_transaction(job_id: i32, conn: &mut PgConnection) -> any creation_time: chrono::Utc::now(), status: "created".to_string(), github_check_run_id: None, - require_min_core: None, - require_min_total_mem: None, - require_min_total_mem_per_core: None, - require_min_disk: None, + require_min_core: job.require_min_core, + require_min_total_mem: job.require_min_total_mem, + require_min_total_mem_per_core: job.require_min_total_mem_per_core, + require_min_disk: job.require_min_disk, }; // create new github check run if the restarted job has one