소스 검색

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

dev1
Дамян Минков 3 년 전
부모
커밋
b9aa0e59f8
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5
    2
      modules/xmpp/xmpp.js

+ 5
- 2
modules/xmpp/xmpp.js 파일 보기

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…
취소
저장