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: add comments to events #3

Merged
merged 3 commits into from
May 30, 2024
Merged

feat: add comments to events #3

merged 3 commits into from
May 30, 2024

Conversation

ayzatmr
Copy link
Owner

@ayzatmr ayzatmr commented May 15, 2024

No description provided.


@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

Choose a reason for hiding this comment

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

Вместо множественных private лучше использовать @FieldDefaults

return commentService.updateComment(userId, eventId, updateCommentDto);
}

@DeleteMapping("/{userId}/comment/{commentId}")

Choose a reason for hiding this comment

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

Лучше писать comments а не comment. Так как ты ищешь из множества коментов нужный по id

@ayzatmr ayzatmr force-pushed the feature_comments branch from ae5e760 to 06f0ce2 Compare May 15, 2024 16:31
@ayzatmr ayzatmr merged commit 0085db7 into main May 30, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants