Skip to content

Commit

Permalink
sonar fix
Browse files Browse the repository at this point in the history
  • Loading branch information
furknyavuz committed Aug 27, 2021
1 parent 805332b commit e905795
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/controller/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class AuthController {

const tokenRepository = new TokenRepository( db );
await tokenRepository.findToken( token );
const user: User = <User>this.tokenUtil.verifyRefreshToken( token );
const user: any = this.tokenUtil.verifyRefreshToken( token );
return this.tokenUtil.generateAccessToken( user );
};

Expand All @@ -122,7 +122,7 @@ export class AuthController {
* @param token token
*/
verify = async ( db: PostgreSqlProvider, token: string ) => {
const user: User = <User>this.tokenUtil.verifyVerificationToken( token );
const user: any = this.tokenUtil.verifyVerificationToken( token );

const userRepository = new UserRepository( db );
await userRepository.verifyUser( user.username );
Expand Down
2 changes: 1 addition & 1 deletion app/controller/info.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class InfoController {
me = async ( db: PostgreSqlProvider, token: string ) => {
const environment = new Environment();
const tokenUtil = new TokenUtil( environment.args() );
const user: User = <User>tokenUtil.verifyAccessToken( token );
const user: any = tokenUtil.verifyAccessToken( token );

const userRepository = new UserRepository( db );
return userRepository.findEmailByUsername( user.username );
Expand Down

0 comments on commit e905795

Please sign in to comment.