Browse Source

fix(callstats): userID sent with the feedback

master
hristoterezov 8 years ago
parent
commit
b354a3e655
1 changed files with 5 additions and 6 deletions
  1. 5
    6
      modules/statistics/CallStats.js

+ 5
- 6
modules/statistics/CallStats.js View File

@@ -411,12 +411,11 @@ function(overallFeedback, detailedFeedback) {
411 411
         return;
412 412
     }
413 413
 
414
-    var feedbackString =    '{"userID":"' + this.userID + '"' +
415
-                            ', "overall":' + overallFeedback +
416
-                            ', "comment": "' + detailedFeedback + '"}';
417
-    var feedbackJSON = JSON.parse(feedbackString);
418
-
419
-    callStats.sendUserFeedback(this.confID, feedbackJSON);
414
+    callStats.sendUserFeedback(this.confID, {
415
+        userID: this.userID,
416
+        overall: overallFeedback,
417
+        comment: detailedFeedback
418
+    });
420 419
 });
421 420
 
422 421
 /**

Loading…
Cancel
Save