@@ -19,15 +19,15 @@ export default class UsersRepository {
1919 } ) ;
2020 }
2121
22- public async getByEmail ( email : string ) : Promise < UserEntity | undefined > {
22+ public async getByEmail ( email : string ) : Promise < UserEntity | void > {
2323 return this . usersModel . findOne ( {
2424 where : [ {
2525 email,
2626 } ] ,
2727 } ) ;
2828 }
2929
30- public async getUnverifiedUserByEmail ( email : string ) : Promise < UserEntity | undefined > {
30+ public async getUnverifiedUserByEmail ( email : string ) : Promise < UserEntity | void > {
3131 return this . usersModel . findOne ( {
3232 where : [ {
3333 email,
@@ -36,7 +36,7 @@ export default class UsersRepository {
3636 } ) ;
3737 }
3838
39- public async getVerifiedUserByEmail ( email : string ) : Promise < UserEntity | undefined > {
39+ public async getVerifiedUserByEmail ( email : string ) : Promise < UserEntity | void > {
4040 return this . usersModel . findOne ( {
4141 where : [ {
4242 email,
@@ -45,17 +45,17 @@ export default class UsersRepository {
4545 } ) ;
4646 }
4747
48- public async getById ( id : number ) : Promise < UserEntity | undefined > {
48+ public async getById ( id : number ) : Promise < UserEntity | void > {
4949 return this . usersModel . findOne ( id ) ;
5050 }
5151
52- public async getVerifiedUserById ( id : number ) : Promise < UserEntity | undefined > {
52+ public async getVerifiedUserById ( id : number ) : Promise < UserEntity | void > {
5353 return this . usersModel . findOne ( id , {
5454 where : [ { verified : true } ] ,
5555 } ) ;
5656 }
5757
58- public async getUnverifiedUserById ( id : number ) : Promise < UserEntity | undefined > {
58+ public async getUnverifiedUserById ( id : number ) : Promise < UserEntity | void > {
5959 return this . usersModel . findOne ( id , {
6060 where : [ { verified : false } ] ,
6161 } ) ;
0 commit comments