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
mr11.5
Debora Crescenzo 4 months ago
parent 3cb8c4d11c
commit 67465275a7

@ -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'
}

@ -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) {

Loading…
Cancel
Save