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

This commit is contained in:
Tom Butcher 2026-06-21 21:41:22 +01:00
parent e14c1405da
commit a2bfd707e2

View File

@ -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,
}); });