Delete post change logs before removing posts

This commit is contained in:
Tim
2025-09-17 13:30:58 +08:00
parent 9101ed336c
commit 5d499956d7
4 changed files with 8 additions and 0 deletions

View File

@@ -8,4 +8,6 @@ import java.util.List;
public interface PostChangeLogRepository extends JpaRepository<PostChangeLog, Long> {
List<PostChangeLog> findByPostOrderByCreatedAtAsc(Post post);
void deleteByPost(Post post);
}