Skip to content

Commit

Permalink
fix : 변수명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jjeongdong committed Aug 11, 2024
1 parent 4f9804c commit 8503b5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public interface PhotoRepository extends JpaRepository<Photo, Long> {
List<Photo> findByIdInAndShareGroupId(List<Long> photoIdList, Long shareGroupId);
List<Photo> findByIdIn(List<Long> photoIdList);
@Modifying
@Query("DELETE FROM Photo p WHERE p.id IN :idList")
void deleteAllByIdList(@Param("idList") List<Long> idList);
@Query("DELETE FROM Photo p WHERE p.id IN :photoIdList")
void deleteAllByPhotoIdList(@Param("photoIdList") List<Long> photoIdList);
}
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public List<Photo> deletePhotoList(PhotoRequest.PhotoDeletedRequest request, Mem
.map(Photo::getId)
.toList();

photoRepository.deleteAllByIdList(photoIdList);
photoRepository.deleteAllByPhotoIdList(photoIdList);

return photoList; // 삭제된 사진 목록 반환
}
Expand Down

0 comments on commit 8503b5d

Please sign in to comment.