Commit b6159c24 authored by Stan Hu's avatar Stan Hu

Handle empty arguments case

parent 445dba15
......@@ -24,7 +24,7 @@ class MarketoTools < Sinatra::Base
params = {}
end
if params['event_name'] == 'user_create'
if params && params['event_name'] == 'user_create'
user = User.new(params)
client.createupdate_leads([user.to_param], lookup_field: :email)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment