Skip to content

Commit

Permalink
Fix: 테이블 명 env로 수정 및 기타 콘솔 제거 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
minchodang authored Aug 9, 2024
1 parent 88cffb3 commit 3be07f4
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/auth/strategy/google.strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export class GoogleStrategy extends PassportStrategy(Strategy, 'google') {
async validate(accessToken: string, refreshToken: string, profile: Profile) {
const { id, name, emails } = profile;

console.log('google login info', id, name, emails);

return {
email: emails[0].value,
Expand Down
5 changes: 0 additions & 5 deletions src/auth/strategy/kakao.strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ export class KakaoStrategy extends PassportStrategy(Strategy, 'kakao') {
refreshToken: string,
profile: Profile,
): Promise<SocialLoginRequestDto> {
console.log(
'kakao login info',
profile._json.kakao_account.email,
String(profile.id),
);

return {
email: profile._json.kakao_account.email,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/auth/auth.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class AuthRepository {
private emailVerificationTableName: string;

constructor(@Inject('DYNAMODB') private dynamoDb: DynamoDBDocument) {
this.tableName = 'Dev-Metacognition-Test';
this.tableName = process.env.AWS_DYNAMODB_TABLE_NAME;
this.emailVerificationTableName =
process.env.AWS_DYNAMODB_EMAIL_VERIFICATION_TABLE_NAME;
}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/test/test.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { DatabaseError } from 'src/core/errors/database-error';
export class TestRepository {
private tableName: string;
constructor(@Inject('DYNAMODB') private dynamoDb: DynamoDBDocument) {
this.tableName = 'Dev-Metacognition-Test';
this.tableName = process.env.AWS_DYNAMODB_TABLE_NAME;
}

async createTest(data: any): Promise<any> {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/user/user.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface UserTest {
export class UserRepository {
private tableName: string;
constructor(@Inject('DYNAMODB') private dynamoDb) {
this.tableName = 'Dev-Metacognition-Test';
this.tableName = process.env.AWS_DYNAMODB_TABLE_NAME;
}

async findOneById(id: string): Promise<UserInfo | null> {
Expand Down

0 comments on commit 3be07f4

Please sign in to comment.