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