chore: approve invoice, reports for admin dashboard
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
//***************************************** */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user