-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/#17 회원 탈퇴 api #2
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
base: dev
Are you sure you want to change the base?
The head ref may contain hidden characters: "feature/#17-\uD68C\uC6D0_\uD0C8\uD1F4_API"
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리뷰 남겼습니다!
user_id: requestDto.userId, | ||
is_deleted: false, | ||
}, | ||
data: { is_deleted: true, updated_at: new Date() }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data: { is_deleted: true, updated_at: new Date() }, | |
data: { is_deleted: true }, |
updated_at
은 어차피 db에서 자동으로 업데이트 될때마다 넣어주기 때문에 업데이트를 안하셔도 될 것 같습니다.
model User {
user_id BigInt @id @default(autoincrement())
nickname String?
email String?
provider Provider?
is_deleted Boolean? @default(false)
created_at DateTime @default(now())
updated_at DateTime @updatedAt
subscriptions Subscription[]
tokens Token[]
notifications Notification[]
@@unique([provider, email])
@@map("user")
}
where: { | ||
user_id: requestDto.userId, | ||
}, | ||
data: { refresh_token: '', updated_at: new Date() }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data: { refresh_token: '', updated_at: new Date() }, | |
data: { refresh_token: '' }, |
위와 코멘트는 동일합니다 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
파일명을 signout.spec.ts -> signout.e2e-spec.ts로 바꾸셔야 할 것 같습니다.
지금하신건, 단위테스트가 아닌 통합테스트(or e2e)테스트로 보입니다!
테스트 코드도 지금 작성하신게 환경에 따라 결과가 다르게 나올 것 같습니다.
요약
변경 사항
체크리스트
관련 이슈
리뷰 반영 사항
선택 항목 펼치기
스크린샷
테스트 방법
리뷰어 참고사항