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

feat: 링크 저장 URL 추가 #19

Merged
merged 13 commits into from
Jun 29, 2024
Merged

feat: 링크 저장 URL 추가 #19

merged 13 commits into from
Jun 29, 2024

Conversation

JonghunAn
Copy link
Member

@JonghunAn JonghunAn commented Jun 29, 2024

PR 내용

추가 및 변경 사항

POST posts/ (URL 링크저장 API 추가)
payload에서 userId type string 타입으로 변경

PR 중점사항

payload에서 userId type string 타입으로 변경

스크린샷

@github-actions github-actions bot added document 문서화 관련 작업 수정 및 생성 feature labels Jun 29, 2024
@UseGuards(JwtGuard)
export class PostsController {
constructor(private readonly postsService: PostsService) {
this.postsService = postsService;
Copy link
Collaborator

Choose a reason for hiding this comment

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

요거 안해줘두 됌~

@Injectable()
export class PostsService {
constructor(private readonly postRepository: PostsRepository) {
this.postRepository = postRepository;
Copy link
Collaborator

Choose a reason for hiding this comment

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

여기두~~

@IsString()
@IsNotEmpty()
@ApiProperty({ description: '폴더 id', required: true })
folderId: Types.ObjectId;
Copy link
Collaborator

Choose a reason for hiding this comment

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

형 Request에서는 Types.ObjectId 인스턴스로 넘겨줄 수 없어서 이거는 string으로 바꿔주는게 좋을것같아!

Copy link
Member Author

Choose a reason for hiding this comment

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

굿굿 맞아 string으로 쓰는게 좋을듯

});
return true;
} catch (error) {
throw new InternalServerErrorException('create post DB error');
Copy link
Collaborator

Choose a reason for hiding this comment

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

요기 exception factory로 나중에 바까주라~

Copy link
Member Author

Choose a reason for hiding this comment

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

이건 exception factory말고 기본 nest exception 쓰기로 결정!

Copy link
Collaborator

@Marades Marades left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@hye-on hye-on left a comment

Choose a reason for hiding this comment

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

짱.

@JonghunAn JonghunAn merged commit 4e3a2dd into development Jun 29, 2024
1 check passed
@J-Hoplin J-Hoplin deleted the feature/create-post branch June 29, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
document 문서화 관련 작업 수정 및 생성 feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants