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 = {},
|
filter = {},
|
||||||
masterFilter = {}
|
masterFilter = {}
|
||||||
) => {
|
) => {
|
||||||
const populateFields = ['to', 'from', 'order'];
|
|
||||||
const result = await listObjectsByProperties({
|
const result = await listObjectsByProperties({
|
||||||
model: invoiceModel,
|
model: invoiceModel,
|
||||||
properties,
|
properties,
|
||||||
filter,
|
filter,
|
||||||
populate: populateFields,
|
|
||||||
masterFilter,
|
masterFilter,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user