mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
add try-catch block
This commit is contained in:
@@ -79,12 +79,14 @@ class TaskEnqueue extends Task {
|
|||||||
this.notifyUrl = url;
|
this.notifyUrl = url;
|
||||||
|
|
||||||
/* invoke account-level webhook for queue event notifications */
|
/* invoke account-level webhook for queue event notifications */
|
||||||
cs.performQueueWebhook({
|
try {
|
||||||
event: 'join',
|
cs.performQueueWebhook({
|
||||||
queue: this.data.name,
|
event: 'join',
|
||||||
length: members,
|
queue: this.data.name,
|
||||||
joinTime: this.waitStartTime
|
length: members,
|
||||||
});
|
joinTime: this.waitStartTime
|
||||||
|
});
|
||||||
|
} catch (err) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
async _removeFromQueue(cs) {
|
async _removeFromQueue(cs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user