Few variable name fixes and logic for external-id missing

This commit is contained in:
italo 2018-01-31 18:12:27 +00:00 committed by Felipe Cecagno
parent 9a998a8ba3
commit 24fa474abb
3 changed files with 6 additions and 7 deletions

View File

@ -19,8 +19,7 @@ module.exports = class CallbackEmitter extends EventEmitter {
this.callbackURL = callbackURL;
this.message = message;
this.nextInterval = 0;
this.timestap = 0;
this.permanent = false;
this.timestamp = 0;
this.permanent = permanent;
}
@ -47,9 +46,9 @@ module.exports = class CallbackEmitter extends EventEmitter {
// no intervals anymore, time to give up
} else {
this.nextInterval = !this.permanent ? 0 : config.hooks.permanentIntervalReset; // Reset interval to permanent hooks
this.nextInterval = config.hooks.permanentIntervalReset; // Reset interval to permanent hooks
if(this.permanent){
this._scheduleNext(interval);
this._scheduleNext(this.nextInterval);
}
else {
return this.emit("stopped");

View File

@ -42,7 +42,7 @@ config.hooks.retryIntervals = [
];
// Reset permanent interval when exceeding maximum attemps
config.hooks.permanentURLsIntervalReset = 8;
config.hooks.permanentIntervalReset = 8;
// Mappings of internal to external meeting IDs
config.mappings = {};

View File

@ -93,7 +93,7 @@ module.exports = class MessageMapping {
},
"user":{
"internal-user-id": msgHeader.userId,
"external-user-id": extId,
"external-user-id": extId ? extId : "",
"sharing-mic": msgBody.muted,
"name": msgBody.name,
"role": msgBody.role,