File tree Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ export default class AccountsPassword implements AuthService {
113
113
* @param {string } email - User email.
114
114
* @returns {Promise<Object> } - Return a user or null if not found.
115
115
*/
116
- public findUserByEmail ( email : string ) : Promise < UserObjectType > {
116
+ public findUserByEmail ( email : string ) : Promise < UserObjectType | null > {
117
117
return this . db . findUserByEmail ( email ) ;
118
118
}
119
119
@@ -122,7 +122,7 @@ export default class AccountsPassword implements AuthService {
122
122
* @param {string } username - User username.
123
123
* @returns {Promise<Object> } - Return a user or null if not found.
124
124
*/
125
- public findUserByUsername ( username : string ) : Promise < UserObjectType > {
125
+ public findUserByUsername ( username : string ) : Promise < UserObjectType | null > {
126
126
return this . db . findUserByUsername ( username ) ;
127
127
}
128
128
Original file line number Diff line number Diff line change @@ -13,15 +13,8 @@ import {
13
13
HookListener ,
14
14
} from '@accounts/common' ;
15
15
import config from './config' ;
16
- import {
17
- generateAccessToken ,
18
- generateRefreshToken ,
19
- } from './tokens' ;
20
- import {
21
- emailTemplates ,
22
- EmailTemplateType ,
23
- sendMail ,
24
- } from './email' ;
16
+ import { generateAccessToken , generateRefreshToken } from './tokens' ;
17
+ import { emailTemplates , EmailTemplateType , sendMail } from './email' ;
25
18
import {
26
19
AccountsServerOptions ,
27
20
ConnectionInformationsType ,
Original file line number Diff line number Diff line change @@ -44,4 +44,4 @@ export const sendMail = async (mail: object): Promise<void> => {
44
44
) ;
45
45
// tslint:disable-next-line no-console
46
46
console . log ( mail ) ;
47
- }
47
+ } ;
You can’t perform that action at this time.
0 commit comments