feat: Removing unnecessary data from public-tracking response
This commit is contained in:
@@ -35,9 +35,9 @@ const populate_list = [
|
||||
{path:'company',select: company_projection },
|
||||
{path:'carrier',select: carrier_projection },
|
||||
{path:'driver',select: user_projection },
|
||||
'posted_by_name',
|
||||
'categories',
|
||||
'product',
|
||||
{path:'posted_by_name', select: ['first_name','last_name']},
|
||||
{path:'categories', select: 'name'},
|
||||
{path:'product', select: 'name' }
|
||||
];
|
||||
|
||||
const getById = async(req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user