From 67465275a79f73fb82ebd704d34476a47e763062 Mon Sep 17 00:00:00 2001 From: Debora Crescenzo Date: Wed, 22 Jan 2025 14:46:54 +0000 Subject: [PATCH] MT#61843 remove subscriberId from GET destinations request after creating new mapping When a PBX admin creates a CF for a Seat, the endpoint (mr11.5x) automatically assigns the PBX admin id to the destination even if we pass the desired subscriberId in the payload. For this reason this commit changes the GET request params to name only. NGCP-Flow: mr11.5 Change-Id: I1e2d3520a1d5441997dd519bb5daed29d13e3362 --- src/api/call-forwarding.js | 1 - src/store/call-forwarding/actions.js | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/api/call-forwarding.js b/src/api/call-forwarding.js index 9dc960b4..ebb325c9 100644 --- a/src/api/call-forwarding.js +++ b/src/api/call-forwarding.js @@ -29,7 +29,6 @@ export async function cfGetMostRecentDestinationSetByName (params) { resource: 'cfdestinationsets', params: { name: params.name, - subscriber_id: params.subscriberId, order_by: 'id', order_by_direction: 'desc' } diff --git a/src/store/call-forwarding/actions.js b/src/store/call-forwarding/actions.js index 222c7dc8..6e844fca 100644 --- a/src/store/call-forwarding/actions.js +++ b/src/store/call-forwarding/actions.js @@ -72,10 +72,7 @@ export async function createMapping ({ dispatch, commit, state, rootGetters }, p destinations: [createDefaultDestination()] }) - const destinationSet = await cfGetMostRecentDestinationSetByName({ - name, - subscriberId: subscriberId - }) + const destinationSet = await cfGetMostRecentDestinationSetByName({ name }) let type = payload.type if (payload.type === 'cfu' && state.mappings.cft && state.mappings.cft.length > 0) {