mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
fix(dequeue): retrieve by callsid (#630)
This commit is contained in:
@@ -73,7 +73,8 @@ class TaskDequeue extends Task {
|
|||||||
try {
|
try {
|
||||||
let url;
|
let url;
|
||||||
if (this.callSid) {
|
if (this.callSid) {
|
||||||
url = await retrieveByPatternSortedSet(this.queueName, `*${this.callSid}`);
|
const r = await retrieveByPatternSortedSet(this.queueName, `*${this.callSid}`);
|
||||||
|
url = r[0];
|
||||||
} else {
|
} else {
|
||||||
url = await retrieveFromSortedSet(this.queueName);
|
url = await retrieveFromSortedSet(this.queueName);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user