MT#58581 /api/customers fix filter by profile_package_id

* filtering by package_id with an incorrect search db query (non-existing
  field) caused a 500 error
* package_id filter is renamed into profile_package_id to correspond
  to the response field
* fix profile_package_id db search query

Change-Id: Ia93e0662172dd89e85572717cbb99a2ed51eb3a7
mr12.1
Kirill Solomko 2 years ago
parent 958e40e2ca
commit 1aef2d5d32

@ -94,11 +94,12 @@ sub query_params {
},
},
{
param => 'package_id',
param => 'profile_package_id',
description => 'Filter for customers with specific profile package id',
query => {
first => sub {
my $q = shift;
{ profile_package_id => $q };
},
second => sub { },
},

Loading…
Cancel
Save