Skip to content

Commit 8aada44

Browse files
author
tosih
committed
Revert setting of variable as done before.
1 parent 2c47d66 commit 8aada44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/services/serviceEventTracking.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ require('app')
1111
var User = require('@runnable/api-client/lib/models/user');
1212
var _keypather;
1313
var _$location;
14+
var INTERCOM_APP_ID;
1415

1516
/**
1617
* EventTracking
@@ -27,6 +28,7 @@ function EventTracking(
2728
keypather,
2829
intercomAppId
2930
) {
31+
INTERCOM_APP_ID = intercomAppId;
3032
_keypather = keypather;
3133
_$location = $location;
3234

@@ -121,7 +123,7 @@ EventTracking.prototype.boot = function (user, opts) {
121123
name: user.oauthName(),
122124
email: user.attrs.email,
123125
created_at: new Date(user.attrs.created) / 1000 || 0,
124-
app_id: intercomAppId
126+
app_id: INTERCOM_APP_ID
125127
};
126128
if (opts.orgName) {
127129
data.company = {

0 commit comments

Comments
 (0)