Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: 테이블 명 env로 수정 및 기타 콘솔 제거 (#29) #37

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading