From a2bfd707e2f80b58390c0e0148d89c24bc4dfbbc Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 21 Jun 2026 21:41:22 +0100 Subject: [PATCH] Removed unused 'populateFields' variable from the invoice route handler to streamline the code and improve clarity. --- src/services/finance/invoices.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/services/finance/invoices.js b/src/services/finance/invoices.js index b72766c..45d4a66 100644 --- a/src/services/finance/invoices.js +++ b/src/services/finance/invoices.js @@ -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, });