TT#101300 /api/subscriberlocationmappings fix search by subscriber_id

Change-Id: Ib2bd10d6537bf3267ee17a4fba16b25100748997
mr9.2
Kirill Solomko 5 years ago
parent 6175625d9f
commit 35316221bf

@ -22,7 +22,15 @@ sub query_params {
{
param => 'subscriber_id',
description => 'Filter for location mappings of a specific subscriber',
query_type => 'string_eq',
query => {
first => sub {
my $q = shift;
return { 'voip_subscriber.id' => $q };
},
second => sub {
return { join => { subscriber => 'voip_subscriber' } };
},
},
},
{
param => 'external_id',

Loading…
Cancel
Save