Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairblue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
chat
fairblue
Commits
24fa474a
Commit
24fa474a
authored
7 years ago
by
italo
Committed by
Felipe Cecagno
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Few variable name fixes and logic for external-id missing
parent
9a998a8b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bbb-webhooks/callback_emitter.js
+4
-5
4 additions, 5 deletions
bbb-webhooks/callback_emitter.js
bbb-webhooks/config.js
+1
-1
1 addition, 1 deletion
bbb-webhooks/config.js
bbb-webhooks/messageMapping.js
+1
-1
1 addition, 1 deletion
bbb-webhooks/messageMapping.js
with
6 additions
and
7 deletions
bbb-webhooks/callback_emitter.js
+
4
−
5
View file @
24fa474a
...
...
@@ -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
(
i
nterval
);
this
.
_scheduleNext
(
this
.
nextI
nterval
);
}
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
+
"
]
"
;
...
...
This diff is collapsed.
Click to expand it.
bbb-webhooks/config.js
+
1
−
1
View file @
24fa474a
...
...
@@ -42,7 +42,7 @@ config.hooks.retryIntervals = [
];
// Reset permanent interval when exceeding maximum attemps
config
.
hooks
.
permanent
URLs
IntervalReset
=
8
;
config
.
hooks
.
permanentIntervalReset
=
8
;
// Mappings of internal to external meeting IDs
config
.
mappings
=
{};
...
...
This diff is collapsed.
Click to expand it.
bbb-webhooks/messageMapping.js
+
1
−
1
View file @
24fa474a
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment