Skip to content

Commit

Permalink
[fix] #21 add right brace
Browse files Browse the repository at this point in the history
  • Loading branch information
nykoh2001 committed Mar 3, 2024
1 parent 578f9a8 commit 0c5ff77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/harang/server/service/PostService.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ public List<PostResponse> getSearchResults(String title) {
.stream()
.map(p -> PostResponse.of(p))
.toList();
}

@Transactional
public void deletePost(Long memberId, Long postId) {
Post post = postRepository.findByIdOrThrow(postId);

locationRepository.deleteByPostId(postId);
postRepository.delete(post);

}
}

0 comments on commit 0c5ff77

Please sign in to comment.