Skip to content

Commit

Permalink
fix: cache 재생성 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyma-s committed Jan 16, 2024
1 parent dc73563 commit 358254e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ private void detachSongs(final List<Song> songs) {
songs.stream()
.peek(entityManager::detach)
.flatMap(song -> song.getKillingParts().stream())
.peek(entityManager::detach)
.flatMap(killingPart -> killingPart.getKillingPartLikes().stream())
.forEach(entityManager::detach);
}

Expand All @@ -53,6 +51,5 @@ public void updateCachedSong() {
.flatMap(song -> song.getKillingParts().stream())
.toList();
killingParts.forEach(entityManager::merge);
recreateCachedSong();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import java.time.temporal.ChronoUnit;
import java.util.List;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
Expand All @@ -19,7 +18,6 @@
import shook.shook.song.domain.repository.SongRepository;
import shook.shook.support.UsingJpaTest;

@Disabled
class KillingPartRepositoryTest extends UsingJpaTest {

private static Song SAVED_SONG;
Expand Down

0 comments on commit 358254e

Please sign in to comment.