chore: fetch company based on the business id in invoice
This commit is contained in:
@@ -302,6 +302,7 @@ export class InvoicesService {
|
|||||||
.select(["company.id", "company.name"])
|
.select(["company.id", "company.name"])
|
||||||
.distinct()
|
.distinct()
|
||||||
.join("company.invoices", "invoice")
|
.join("company.invoices", "invoice")
|
||||||
|
.where({ business: { id: businessId } })
|
||||||
.getResult();
|
.getResult();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user