Skip to content

Commit

Permalink
Merge pull request #39 from danutzcodrescu/fix/query-client-data
Browse files Browse the repository at this point in the history
fix: fetch invoices only for the client
  • Loading branch information
danutzcodrescu authored Apr 12, 2020
2 parents 80edead + 099a4b3 commit 4c7698d
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 4c7698d

Please sign in to comment.