run prettier formatting on all files

This commit is contained in:
Amruth Pillai
2023-07-13 08:54:37 +02:00
parent 984078db76
commit 161ca0ee28
37 changed files with 166 additions and 1047 deletions
+3 -3
View File
@@ -20,7 +20,7 @@ export class AuthService {
private schedulerRegistry: SchedulerRegistry,
private configService: ConfigService,
private usersService: UsersService,
private jwtService: JwtService
private jwtService: JwtService,
) {}
async register(registerDto: RegisterDto) {
@@ -49,7 +49,7 @@ export class AuthService {
if (!isPasswordMatching) {
throw new HttpException(
'The username/email and password combination provided was incorrect.',
HttpStatus.UNAUTHORIZED
HttpStatus.UNAUTHORIZED,
);
}
}
@@ -64,7 +64,7 @@ export class AuthService {
} catch (error) {
throw new HttpException(
'The username/email and password combination provided was incorrect.',
HttpStatus.UNAUTHORIZED
HttpStatus.UNAUTHORIZED,
);
}
}
+4 -1
View File
@@ -8,7 +8,10 @@ import { UsersService } from '@/users/users.service';
@Injectable()
export class JwtStrategy extends PassportStrategy(Strategy) {
constructor(configService: ConfigService, private readonly usersService: UsersService) {
constructor(
configService: ConfigService,
private readonly usersService: UsersService,
) {
super({
jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(),
secretOrKey: configService.get('auth.jwtSecret'),