mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 02:02:19 +00:00
chore(testing): enable non prod analytics
This commit is contained in:
parent
32cb201b81
commit
61d151d2bb
1 changed files with 4 additions and 8 deletions
|
|
@ -353,14 +353,10 @@ const mockAnalyticsService = {
|
|||
|
||||
// Return the production or mock service based on the current environment
|
||||
function getServiceByEnvironment () {
|
||||
if (nconf.get('IS_PROD')) {
|
||||
return {
|
||||
track,
|
||||
trackPurchase,
|
||||
};
|
||||
}
|
||||
|
||||
return mockAnalyticsService;
|
||||
return {
|
||||
track,
|
||||
trackPurchase,
|
||||
};
|
||||
}
|
||||
|
||||
export {
|
||||
|
|
|
|||
Loading…
Reference in a new issue