refactor(routing): toggle routing if create group at import
This commit is contained in:
parent
3de5aa0382
commit
dcbaa5a5a0
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ class InstructeursImportService
|
||||||
if missing_labels.present?
|
if missing_labels.present?
|
||||||
created_at = Time.zone.now
|
created_at = Time.zone.now
|
||||||
GroupeInstructeur.create!(missing_labels.map { |label| { procedure_id: procedure.id, label:, created_at:, updated_at: created_at } })
|
GroupeInstructeur.create!(missing_labels.map { |label| { procedure_id: procedure.id, label:, created_at:, updated_at: created_at } })
|
||||||
|
procedure.defaut_groupe_instructeur.toggle_routing
|
||||||
end
|
end
|
||||||
|
|
||||||
emails_in_groupe = groupes_emails
|
emails_in_groupe = groupes_emails
|
||||||
|
|
Loading…
Reference in a new issue