diff --git a/app/services/user_event_creator.rb b/app/services/user_event_creator.rb index 9ff42e3be28..6f691c7ce75 100644 --- a/app/services/user_event_creator.rb +++ b/app/services/user_event_creator.rb @@ -37,7 +37,7 @@ def create_event_for_new_device(event_type:, user:) return event unless user_has_multiple_devices - send_new_device_notificaiton(user: user, event: event, device: device) + send_new_device_notification(user: user, event: event, device: device) event end @@ -53,7 +53,7 @@ def assign_device_cookie(device_cookie) cookies.permanent[:device] = device_cookie unless device_cookie == cookies[:device] end - def send_new_device_notificaiton(user:, device:, event:) + def send_new_device_notification(user:, device:, event:) disavowal_token = EventDisavowal::GenerateDisavowalToken.new(event).call UserAlerts::AlertUserAboutNewDevice.call(user, device, disavowal_token) end