This commit is contained in:
Николай 2023-04-10 22:17:32 +04:00
parent bfd9a5782a
commit c3ebc3dbf6

View File

@ -92,9 +92,9 @@ public class MangaService {
public Manga deleteManga(Long id) {
final Manga currentManga = findManga(id);
final List<Reader> listReader = readerService.findAllReaders();
/* for (Reader reader : listReader){
for (Reader reader : listReader){
reader.getMangas().remove(currentManga);
}*/
}
mangaRepository.delete(currentManga);
return currentManga;
}