From e14c1405da9a164c8408ff2786fd61777f027cfb Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 21 Jun 2026 21:30:09 +0100 Subject: [PATCH] Updated invoice route handler to reference 'toType' and 'fromType' fields, ensuring consistency with the latest schema adjustments. --- src/services/finance/invoices.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/finance/invoices.js b/src/services/finance/invoices.js index 921cba6..b72766c 100644 --- a/src/services/finance/invoices.js +++ b/src/services/finance/invoices.js @@ -32,8 +32,8 @@ export const listInvoicesRouteHandler = async ( order = 'ascend' ) => { const populateFields = [ - { path: 'to', strictPopulate: false, ref: 'client' }, - { path: 'from', strictPopulate: false, ref: 'vendor' }, + { path: 'to', strictPopulate: false, ref: 'toType' }, + { path: 'from', strictPopulate: false, ref: 'fromType' }, { path: 'order' }, ]; const result = await listObjects({