Skip to content
Snippets Groups Projects
Commit f6dcaaa3 authored by Le Roux Bodenstein's avatar Le Roux Bodenstein
Browse files

Upgrade to the latest intercom.io, no more /v1

parent cde46509
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -206,17 +206,20 @@ function configureIntercom(statsHandlers, config) {
 
statsHandlers.userUpdate.push(function(user/*, properties*/) {
var created_at = new Date(user._id.getTimestamp());
var now = Number(Date.now()/1000).toFixed(0);
//var now = Number(Date.now()/1000).toFixed(0);
 
var profile = {
"email": user.email,
"user_id": user._id,
"name": user.displayName,
"created_at": created_at,
"username": user.username,
"state": user.state || 'ACTIVE',
"last_impression_at": now,
"bucket": getBucketFromUserId(user._id)
"email" : user.email,
"user_id" : user._id,
"name" : user.displayName,
"created_at" : created_at,
//"last_impression_at" : now,
"update_last_request_at": true,
"custom_data": {
"username" : user.username,
"bucket": getBucketFromUserId(user._id),
"state" : user.state || 'ACTIVE',
}
};
 
intercom.createUser(profile, function(err) {
Loading
Loading
Loading
Loading
@@ -30,7 +30,7 @@
"gitter-private-cube": "^0.2.12",
"gitter-redis-sentinel-client": "^0.3.0",
"heapdump": "^0.3.7",
"intercom.io": "~0.0.8",
"intercom.io": "~1.2.1",
"lodash": "^4.6.1",
"mandrill-api": "^1.0.41",
"mixpanel": "0.0.20",
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment