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({