Browse Source

feat: Updates deployment info key for release and push to analytics.

dev1
Дамян Минков 2 years ago
parent
commit
b9aa0e59f8
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      modules/xmpp/xmpp.js

+ 5
- 2
modules/xmpp/xmpp.js View File

467
             }
467
             }
468
 
468
 
469
             if (identity.type === 'release') {
469
             if (identity.type === 'release') {
470
-                this.options.deploymentInfo.release = identity.name;
470
+                this.options.deploymentInfo.backendRelease = identity.name;
471
             }
471
             }
472
 
472
 
473
             if (identity.type === 'breakout_rooms') {
473
             if (identity.type === 'breakout_rooms') {
1056
         if (aprops && Object.keys(aprops).length > 0) {
1056
         if (aprops && Object.keys(aprops).length > 0) {
1057
             const logObject = {};
1057
             const logObject = {};
1058
 
1058
 
1059
-            logObject.id = 'deployment_info';
1060
             for (const attr in aprops) {
1059
             for (const attr in aprops) {
1061
                 if (aprops.hasOwnProperty(attr)) {
1060
                 if (aprops.hasOwnProperty(attr)) {
1062
                     logObject[attr] = aprops[attr];
1061
                     logObject[attr] = aprops[attr];
1063
                 }
1062
                 }
1064
             }
1063
             }
1065
 
1064
 
1065
+            // Let's push to analytics any updates that may have come from the backend
1066
+            Statistics.analytics.addPermanentProperties({ ...logObject });
1067
+
1068
+            logObject.id = 'deployment_info';
1066
             Statistics.sendLog(JSON.stringify(logObject));
1069
             Statistics.sendLog(JSON.stringify(logObject));
1067
         }
1070
         }
1068
 
1071
 

Loading…
Cancel
Save