Skip to content

Commit

Permalink
fix: fetch invoices only fo the client
Browse files Browse the repository at this point in the history
  • Loading branch information
danutzcodrescu committed Apr 12, 2020
1 parent 80edead commit 099a4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ export function setParamsClientQuerries(
startDate?: string,
endDate?: string,
) {
const params = { clientId, order: { invoiceDate: 'DESC' } };
const params = { where: { clientId }, order: { invoiceDate: 'DESC' } };
return setDates(params, startDate, endDate);
}

0 comments on commit 099a4b3

Please sign in to comment.