Removed unused 'populateFields' variable from the invoice route handler to streamline the code and improve clarity.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
This commit is contained in:
parent
e14c1405da
commit
a2bfd707e2
@ -65,12 +65,10 @@ export const listInvoicesByPropertiesRouteHandler = async (
|
||||
filter = {},
|
||||
masterFilter = {}
|
||||
) => {
|
||||
const populateFields = ['to', 'from', 'order'];
|
||||
const result = await listObjectsByProperties({
|
||||
model: invoiceModel,
|
||||
properties,
|
||||
filter,
|
||||
populate: populateFields,
|
||||
masterFilter,
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user