We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73917e7 commit 419339eCopy full SHA for 419339e
server/src/comment/service/comment.service.ts
@@ -130,10 +130,10 @@ export class CommentService {
130
}
131
132
async update(userInformation: Payload, commentDto: UpdateCommentRequestDto) {
133
- await this.commentCheck(userInformation, commentDto.commentId);
134
- const commentObj = await this.commentRepository.findOneBy({
135
- id: commentDto.commentId,
136
- });
+ const commentObj = await this.commentCheck(
+ userInformation,
+ commentDto.commentId,
+ );
137
138
commentObj.comment = commentDto.newComment;
139
await this.commentRepository.save(commentObj);
0 commit comments