fix: the bug in transaction list user side

This commit is contained in:
mahyargdz
2025-03-01 11:32:39 +03:30
parent 6aee1a5769
commit ada9c153e6
14 changed files with 84 additions and 153 deletions
@@ -417,6 +417,16 @@ export class InvoicesService {
});
return count;
}
//*********************************** */
async countUserInvoices(userId: string) {
const invoiceCount = await this.invoiceRepository.count({
where: {
user: { id: userId },
},
});
return invoiceCount;
}
//*********************************** */