feat/fix: Adding missing fields to branches/proposals

This commit is contained in:
Josepablo C
2024-09-28 19:16:29 -06:00
parent 4823b98d23
commit 4c28c9122b
4 changed files with 27 additions and 9 deletions

View File

@@ -29,9 +29,15 @@ function getAndFilterList( query ){
phone,
city,
state,
truck_type
truck_type,
is_accepted,
is_withdrawn,
is_completed,
} = query;
if( is_completed ) { filter_list.push({ is_completed }); }
if( is_withdrawn ) { filter_list.push({ is_withdrawn }); }
if( is_accepted ) { filter_list.push({ is_accepted }); }
if( shipper ) { filter_list.push({ shipper }); }
if( carrier ) { filter_list.push({ carrier }); }
if( load ) { filter_list.push({ load }); }