File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
redisinsight/api/src/modules/server Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -52,15 +52,18 @@ export class ServerService implements OnApplicationBootstrap {
52
52
appType : this . getAppType ( SERVER_CONFIG . buildType ) ,
53
53
} ) ;
54
54
55
- this . eventEmitter . emit ( AppAnalyticsEvents . Track , {
56
- event : startEvent ,
57
- eventData : {
58
- appVersion : SERVER_CONFIG . appVersion ,
59
- osPlatform : process . platform ,
60
- buildType : SERVER_CONFIG . buildType ,
61
- } ,
62
- nonTracking : true ,
63
- } ) ;
55
+ // do not track start events for non-electron builds
56
+ if ( SERVER_CONFIG ?. buildType . toUpperCase ( ) === 'ELECTRON' ) {
57
+ this . eventEmitter . emit ( AppAnalyticsEvents . Track , {
58
+ event : startEvent ,
59
+ eventData : {
60
+ appVersion : SERVER_CONFIG . appVersion ,
61
+ osPlatform : process . platform ,
62
+ buildType : SERVER_CONFIG . buildType ,
63
+ } ,
64
+ nonTracking : true ,
65
+ } ) ;
66
+ }
64
67
}
65
68
66
69
/**
You can’t perform that action at this time.
0 commit comments