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

QYOG-38 소셜 회원가입 fix (1차) #131

Merged
merged 8 commits into from
Feb 4, 2024
Merged

QYOG-38 소셜 회원가입 fix (1차) #131

merged 8 commits into from
Feb 4, 2024

Conversation

ohchanghoon
Copy link
Collaborator

Description

기존 머지된 소셜 회원가입에서 null 허용이 똑바로 되지 않음

To Reviewer

  • 닉네임은 가입시 자동생성되고, user_${timestamp}_${randomString} 이렇게되어 약간 김.

Reference Link

Related Issue Link

https://dongurami.atlassian.net/browse/QYOG-38

API

@ohchanghoon ohchanghoon added Refactor 코드 수정(기능상의 수정이 없는 경우) Feat 새로운 기능 추가 labels Feb 4, 2024
@@ -0,0 +1,52 @@
import { MigrationInterface, QueryRunner, TableColumn } from "typeorm"

export class UserEmailNullable1706878330599 implements MigrationInterface {
Copy link
Member

Choose a reason for hiding this comment

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

isUnique 설정도 해주세요

import moment from 'moment';
import * as crypto from 'crypto';

@Injectable()
Copy link
Member

Choose a reason for hiding this comment

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

별도의 서비스를 만들어서 관리하는거보다는 usersService에 private method로 관리되는게 나들거같아요

) {}

async create(createUserRequestBodyDto: CreateUserRequestBodyDto) {
async create({ snsId, loginType }: Pick<CreateUserDto, 'snsId' | 'loginType'>) {
Copy link
Member

Choose a reason for hiding this comment

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

일단 프론트측 테스트때문에 돌아가게만 만들어진거같은데 어떤 작업 추가로 해야하는지 각 메서드들 위에 주석으로 달아주시겠어요
jsdoc의 todo 형태로 다시면 됩니다.

@ohchanghoon ohchanghoon requested a review from rrgks6221 February 4, 2024 11:50
Copy link
Member

@rrgks6221 rrgks6221 left a comment

Choose a reason for hiding this comment

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

클라리언트 테스트를 위해 우선 어프로브합니다

@ohchanghoon ohchanghoon merged commit 8b49463 into develop Feb 4, 2024
@ohchanghoon ohchanghoon deleted the feat/QYOG-38 branch February 4, 2024 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feat 새로운 기능 추가 Refactor 코드 수정(기능상의 수정이 없는 경우)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants