FIX: Do not update created_at date when resending invites
This commit is contained in:
parent
fa56ba89a5
commit
8a59225355
|
@ -233,7 +233,7 @@ class Invite < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def resend_invite
|
||||
self.update_columns(created_at: Time.zone.now, updated_at: Time.zone.now)
|
||||
self.update_columns(updated_at: Time.zone.now)
|
||||
Jobs.enqueue(:invite_email, invite_id: self.id)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue