Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/services/user_event_creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down