Parcourir la source

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

dev1
Дамян Минков il y a 2 ans
Parent
révision
b9aa0e59f8
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. 5
    2
      modules/xmpp/xmpp.js

+ 5
- 2
modules/xmpp/xmpp.js Voir le fichier

@@ -467,7 +467,7 @@ export default class XMPP extends Listenable {
467 467
             }
468 468
 
469 469
             if (identity.type === 'release') {
470
-                this.options.deploymentInfo.release = identity.name;
470
+                this.options.deploymentInfo.backendRelease = identity.name;
471 471
             }
472 472
 
473 473
             if (identity.type === 'breakout_rooms') {
@@ -1056,13 +1056,16 @@ export default class XMPP extends Listenable {
1056 1056
         if (aprops && Object.keys(aprops).length > 0) {
1057 1057
             const logObject = {};
1058 1058
 
1059
-            logObject.id = 'deployment_info';
1060 1059
             for (const attr in aprops) {
1061 1060
                 if (aprops.hasOwnProperty(attr)) {
1062 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 1069
             Statistics.sendLog(JSON.stringify(logObject));
1067 1070
         }
1068 1071
 

Chargement…
Annuler
Enregistrer