refactor(routing): toggle routing if create group at import

This commit is contained in:
Eric Leroy-Terquem 2023-06-26 17:37:14 +02:00
parent 3de5aa0382
commit dcbaa5a5a0

View file

@ -16,6 +16,7 @@ class InstructeursImportService
if missing_labels.present?
created_at = Time.zone.now
GroupeInstructeur.create!(missing_labels.map { |label| { procedure_id: procedure.id, label:, created_at:, updated_at: created_at } })
procedure.defaut_groupe_instructeur.toggle_routing
end
emails_in_groupe = groupes_emails