File tree 3 files changed +3
-8
lines changed 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,7 @@ async function bootstrap() {
28
28
app . use ( passport . session ( ) )
29
29
30
30
// Swagger
31
- const options = new DocumentBuilder ( )
32
- . setTitle ( 'Hangman API' )
33
- . setDescription ( '' )
34
- . setVersion ( '0.0.1' )
35
- . build ( )
31
+ const options = new DocumentBuilder ( ) . setTitle ( 'Hangman API' ) . setDescription ( '' ) . setVersion ( '0.0.1' ) . build ( )
36
32
const document = SwaggerModule . createDocument ( app , options )
37
33
SwaggerModule . setup ( 'api' , app , document )
38
34
Original file line number Diff line number Diff line change @@ -29,8 +29,7 @@ export class AuthService {
29
29
}
30
30
31
31
const payload : JwtPayload = {
32
- // TODO: Solve type.
33
- sub : ( user as any ) . _id ,
32
+ sub : user . _id ,
34
33
fullName : `${ user . firstName } ` ,
35
34
email : user . email
36
35
}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export class UsersService {
21
21
return from ( this . userModel . findById ( id , proyection ) . lean ( ) )
22
22
}
23
23
24
- findByEmail ( email : string ) : Observable < User > {
24
+ findByEmail ( email : string ) : Observable < User & { _id : string } > {
25
25
return from ( this . userModel . findOne ( { email } ) . lean ( ) )
26
26
}
27
27
You can’t perform that action at this time.
0 commit comments