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
@@ -638,6 +638,21 @@ export class UsersService {
};
}
/************************************************************ */
async getCustomersCount() {
const count = await this.userRepository.count({
where: {
roles: {
name: RoleEnum.USER,
},
},
});
return count;
}
/************************************************************ */
private async createEmailHashLink(userId: string) {
const secret = this.configService.getOrThrow<string>("EMAIL_SECRET");
const timestamp = Date.now();