-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
ddcebd5
to
4973875
Compare
@UseGuards(JwtGuard) | ||
export class PostsController { | ||
constructor(private readonly postsService: PostsService) { | ||
this.postsService = postsService; |
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.
요거 안해줘두 됌~
src/modules/posts/posts.service.ts
Outdated
@Injectable() | ||
export class PostsService { | ||
constructor(private readonly postRepository: PostsRepository) { | ||
this.postRepository = postRepository; |
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.
여기두~~
@IsString() | ||
@IsNotEmpty() | ||
@ApiProperty({ description: '폴더 id', required: true }) | ||
folderId: Types.ObjectId; |
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.
형 Request에서는 Types.ObjectId 인스턴스로 넘겨줄 수 없어서 이거는 string으로 바꿔주는게 좋을것같아!
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.
굿굿 맞아 string으로 쓰는게 좋을듯
}); | ||
return true; | ||
} catch (error) { | ||
throw new InternalServerErrorException('create post DB error'); |
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.
요기 exception factory로 나중에 바까주라~
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.
이건 exception factory말고 기본 nest exception 쓰기로 결정!
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.
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.
짱.
PR 내용
추가 및 변경 사항
PR 중점사항
스크린샷