fix(v1:vehicles): Adding is_available filter
This commit is contained in:
@@ -433,6 +433,7 @@ Work In Progress
|
|||||||
__This endpoint is only valid for carriers.__
|
__This endpoint is only valid for carriers.__
|
||||||
|
|
||||||
- `GET /find` : Find a list of elements (from the company it self only) with any of the following fields:
|
- `GET /find` : Find a list of elements (from the company it self only) with any of the following fields:
|
||||||
|
- is_available,
|
||||||
- categories,
|
- categories,
|
||||||
- active_load,
|
- active_load,
|
||||||
- load_shipper,
|
- load_shipper,
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ function getAndFilterList( query ){
|
|||||||
const filter_list = [];
|
const filter_list = [];
|
||||||
const {
|
const {
|
||||||
company,
|
company,
|
||||||
|
is_available,
|
||||||
categories,
|
categories,
|
||||||
active_load,
|
active_load,
|
||||||
load_shipper,
|
load_shipper,
|
||||||
@@ -29,6 +30,7 @@ function getAndFilterList( query ){
|
|||||||
} = query;
|
} = query;
|
||||||
|
|
||||||
if( company ) { filter_list.push({ company }); }
|
if( company ) { filter_list.push({ company }); }
|
||||||
|
if( is_available ) { filter_list.push({ is_available }); }
|
||||||
if( categories ) { filter_list.push({ categories }); }
|
if( categories ) { filter_list.push({ categories }); }
|
||||||
if( active_load ) { filter_list.push({ active_load }); }
|
if( active_load ) { filter_list.push({ active_load }); }
|
||||||
if( load_shipper ) { filter_list.push({ load_shipper }); }
|
if( load_shipper ) { filter_list.push({ load_shipper }); }
|
||||||
|
|||||||
Reference in New Issue
Block a user