convert timesptamps to i for better integration w customerio
This commit is contained in:
parent
8132258b2c
commit
82f280f5d3
|
@ -172,10 +172,10 @@ class Travis::Api::App
|
||||||
:name => user.name,
|
:name => user.name,
|
||||||
:login => user.login,
|
:login => user.login,
|
||||||
:email => primary_email_for_user(user.github_oauth_token),
|
:email => primary_email_for_user(user.github_oauth_token),
|
||||||
:created_at => user.created_at,
|
:created_at => user.created_at.to_i,
|
||||||
:github_id => user.github_id,
|
:github_id => user.github_id,
|
||||||
:education => user.education,
|
:education => user.education,
|
||||||
:first_logged_in_at => user.first_logged_in_at
|
:first_logged_in_at => user.first_logged_in_at.to_i
|
||||||
}
|
}
|
||||||
customerio.identify(payload)
|
customerio.identify(payload)
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
|
|
Loading…
Reference in New Issue
Block a user