Skip to content

Commit 9ee3df2

Browse files
authored
Fix smtp synchronisation (#548)
1 parent 0181a9e commit 9ee3df2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/mail_alias.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class MailAlias < ApplicationRecord
1414
before_validation :downcase_email
1515

1616
before_destroy :disable_smtp
17-
after_save :set_smtp
17+
after_commit :set_smtp
1818
after_commit :sync_mail_aliases
1919

2020
scope :mail_aliases_moderated_by_user, lambda { |user|

0 commit comments

Comments
 (0)