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

[송지민] 과제 제출 #5

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

jiminsong490
Copy link

@jiminsong490 jiminsong490 changed the title [jimin] 과제 제출 [송지민] 과제 제출 Nov 24, 2023
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

swagger 설정을 따로 파일을 만들어서 하니 깔끔해서 좋은 것 같습니다!
swagger를 여러개 만드는 경우도 있더라구요! 그래서 이 방법이 좋아 보입니다👍

});
await this.userRepository.save(user);

console.log(user);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저도 자주 까먹는데 디버깅용 console.log() 삭제하는 습관을 들이면 좋을 것 같아요👍

})
createdAt: Date;
@DeleteDateColumn({ type: 'timestamp' })
deletedAt?: Date | null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

보통 entity에 optional을 붙이기도 하나요?
optioanl을 붙이면 deletedAt Column이 있어도 되고 없어도 된다는 뜻이 되지 않나요?!

하지만 deletedAt Column은 User Entity에 필수로 보여서요!

}

export class ResponseUserDto {
@Expose()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expose() 데코레이터는 무엇인가요?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants