Skip to content

Commit

Permalink
[FIX] Wrong param usage on queue summary call (#24799)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman authored and AllanPazRibeiro committed Mar 18, 2022
1 parent f3024fd commit f7d351b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions server/services/voip/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,14 @@ export class VoipService extends ServiceClassInternal implements IVoipService {
const queueInfo: { name: string; members: string[] }[] = [];
for await (const queue of queues) {
const queueDetails = (await this.commandHandler.executeCommand(Commands.queue_details, {
queue,
queueName: queue,
})) as IVoipConnectorResult;

const details = queueDetails.result as IQueueDetails;
if (!details.members || !details.members.length) {
// Go to the next queue if queue does not have any
// memmbers.
continue;
}
queueInfo.push({
name: queue,
members: (queueDetails.result as IQueueDetails).members.map((member) => member.name.replace('PJSIP/', '')),
Expand Down

0 comments on commit f7d351b

Please sign in to comment.