import { User } from './user.entity' ; import { UserRepository } from './user.repository' ; import { Injectable } from '@nestjs/common' ; import { BaseService } from '../base.service' ; import { LoggerService } from '../logger/custom.logger' ; @ Injectable ( ) export class UserService extends BaseService < User , UserRepository > { constructor ( repository , logger ) { super ( repository , logger ) ; } findByEmail ( email ) { return this . repository . findOne ( { email : email } ) ; } getInactiveUsers ( ) { return this . repository . getInactiveUsers ( ) ; } }