Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
DaviMatheus committed Jul 28, 2024
1 parent b30d8a0 commit 9dd8308
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,15 @@ export class AuthController {
@Get('google')
@UseGuards(AuthGuard('google'))
async googleAuth() {

this.logger.log(
`front url: ${this.configService.get<string>('FRONTEND_URL')}`,
);
this.logger.log('AuthController - Google Auth Initiated');

}

@Get('google/callback')
@UseGuards(AuthGuard('google'))
googleAuthRedirect(@Req() req: Request, @Res() res: Response) {

this.logger.log(
`front url: ${this.configService.get<string>('FRONTEND_URL')}`,
);
Expand All @@ -70,7 +67,6 @@ export class AuthController {
@Get('microsoft')
@UseGuards(AuthGuard('microsoft'))
async microsoftAuth() {

this.logger.log(
`front url: ${this.configService.get<string>('FRONTEND_URL')}`,
);
Expand All @@ -86,7 +82,7 @@ export class AuthController {
);

const user = req.user as any;
const { access_token } = user || {};
const { access_token } = user || {};

if (access_token) {
res.redirect(
Expand Down
1 change: 0 additions & 1 deletion src/users/interface/user.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const UserSchema = new mongoose.Schema(
type: String,
enum: Object.values(UserRole),
default: UserRole.ALUNO,

},
},
{ timestamps: true, collection: 'users' },
Expand Down

0 comments on commit 9dd8308

Please sign in to comment.