mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
bugfix: transferring queued party to dequeuer on other FS fails if only 1 task
This commit is contained in:
@@ -106,12 +106,12 @@ class Task extends Emitter {
|
|||||||
delete obj.requestor;
|
delete obj.requestor;
|
||||||
delete obj.notifier;
|
delete obj.notifier;
|
||||||
obj.tasks = cs.getRemainingTaskData();
|
obj.tasks = cs.getRemainingTaskData();
|
||||||
if (opts && obj.tasks.length > 1) {
|
if (opts && obj.tasks.length > 0) {
|
||||||
const key = Object.keys(obj.tasks[0])[0];
|
const key = Object.keys(obj.tasks[0])[0];
|
||||||
Object.assign(obj.tasks[0][key], {_: opts});
|
Object.assign(obj.tasks[0][key], {_: opts});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.logger.debug({obj}, 'Task:_doRefer');
|
this.logger.debug({obj}, 'Task:_doRefer - final object to store for receiving session on othe server');
|
||||||
|
|
||||||
const success = await addKey(uuid, JSON.stringify(obj), 30);
|
const success = await addKey(uuid, JSON.stringify(obj), 30);
|
||||||
if (!success) {
|
if (!success) {
|
||||||
|
|||||||
Reference in New Issue
Block a user