chore: fetch company based on the business id in invoice

This commit is contained in:
mahyargdz
2025-06-01 16:02:59 +03:30
parent b0d76d1cd6
commit a457bb276e
@@ -302,6 +302,7 @@ export class InvoicesService {
.select(["company.id", "company.name"])
.distinct()
.join("company.invoices", "invoice")
.where({ business: { id: businessId } })
.getResult();
return {