Few variable name fixes and logic for external-id missing
This commit is contained in:
parent
9a998a8ba3
commit
24fa474abb
@ -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");
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user