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"])
|
||||
.distinct()
|
||||
.join("company.invoices", "invoice")
|
||||
.where({ business: { id: businessId } })
|
||||
.getResult();
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user