From 7b483e983d7db007ffe1ce8e9bc0a08b51bd03e9 Mon Sep 17 00:00:00 2001 From: Petros Angelatos Date: Wed, 18 Jun 2014 20:10:33 +0100 Subject: [PATCH] Fix bug of using mixpanel module as the mixpanel client --- src/utils.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.coffee b/src/utils.coffee index cd87eee5..2c7c4649 100644 --- a/src/utils.coffee +++ b/src/utils.coffee @@ -11,7 +11,7 @@ exports.getSupervisorVersion = -> obj = JSON.parse data return obj.version -mixpanel.init(config.mixpanelToken) +mixpanelClient = mixpanel.init(config.mixpanelToken) exports.mixpanelProperties = mixpanelProperties = username: require('/boot/config.json').username @@ -20,4 +20,4 @@ exports.mixpanelTrack = (event, properties={}) -> # Mutation is bad, and it should feel bad properties = _.assign(_.cloneDeep(properties), mixpanelProperties) - mixpanel.track(event, properties) + mixpanelClient.track(event, properties)