fix(merge): ensure service transfert always works

This commit is contained in:
simon lehericey 2022-10-27 12:44:02 +02:00
parent 71e8277a4f
commit 4c98b8f01c

View file

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