fix(silent_error_in_merge): raise if merge update fail

This commit is contained in:
simon lehericey 2022-10-20 17:05:28 +02:00 committed by LeSim
parent c3242ebad3
commit 44aff1a293

View file

@ -131,7 +131,7 @@ class Administrateur < ApplicationRecord
old_service.procedures.update_all(service_id: corresponding_service.id) old_service.procedures.update_all(service_id: corresponding_service.id)
old_service.destroy old_service.destroy
else else
old_service.update(administrateur_id: id) old_service.update!(administrateur_id: id)
end end
end end