chore: approve invoice, reports for admin dashboard

This commit is contained in:
Matin
2025-02-22 16:04:26 +03:30
parent e711ffd3ee
commit 3b0120d338
12 changed files with 448 additions and 8 deletions
+13
View File
@@ -193,4 +193,17 @@ export class AdsService {
}
//***************************************** */
async getAdsCount() {
const count = await this.adsRepository.count({
where: {
isActive: true,
startDate: LessThanOrEqual(new Date()),
endDate: MoreThan(new Date()),
},
});
return count;
}
//***************************************** */
}