Skip to content

Commit

Permalink
test : log
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondanythings committed Dec 18, 2023
1 parent a9e54cd commit 4ecff27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/oauth/oauth.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AuthService } from './../auth/auth.service';
import { UserService } from './../users/user.service';
import { BadRequestException, Injectable } from '@nestjs/common';
import { BadRequestException, Injectable, Logger } from '@nestjs/common';
import axios from 'axios';
import { GoogleAuthResponse, GoogleUserInfo } from './dtos/google.dto';
import { URL } from 'url';
Expand Down Expand Up @@ -73,6 +73,7 @@ export class OauthService {
await this.dataSource.getRepository(User).save(user);
return new GoogleAuthResponse(token, user);
} catch (err) {
new Logger().error(err.message);
throw new BadRequestException('invalid request');
}
}
Expand Down

0 comments on commit 4ecff27

Please sign in to comment.