model: only commit files that need to be saved

This commit is contained in:
Robur 2024-01-09 16:42:13 +00:00
parent 22f3eb3893
commit 81be4229c1

View file

@ -463,7 +463,7 @@ let add_build
Db.exec Build_artifact.add (file, id))
(Lwt_result.return ())
remaining_artifacts_to_add >>= fun () ->
commit_files datadir staging_dir job_name uuid artifacts >>= fun () ->
commit_files datadir staging_dir job_name uuid (List.map fst artifacts_to_save) >>= fun () ->
Db.commit () >|= fun () ->
main_binary
in