Skip to content
Snippets Groups Projects
Commit 24fa474a authored by italo's avatar italo Committed by Felipe Cecagno
Browse files

Few variable name fixes and logic for external-id missing

parent 9a998a8b
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......@@ -63,7 +62,7 @@ module.exports = class CallbackEmitter extends EventEmitter {
_emitMessage(callback) {
let data,requestOptions;
if (config.bbb.auth2_0) {
// Send data as a JSON
data = "[" + this.message + "]";
......
......@@ -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 = {};
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment