Skip to content

Commit

Permalink
Revert "[FIX] 공지 반환 순서 수정"
Browse files Browse the repository at this point in the history
  • Loading branch information
rinarina0429 authored Dec 27, 2024
1 parent afa305c commit c799eb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
@Repository
public interface NoticeRepository extends JpaRepository<Notice, Long> {

@Query(value = "SELECT n FROM Notice n WHERE n.userId = ?1 OR n.userId = 0 ORDER BY n.createdDate DESC")
@Query(value = "SELECT n FROM Notice n WHERE n.userId = ?1 OR n.userId = 0")
List<Notice> findByUserId(Long userId);
}

0 comments on commit c799eb5

Please sign in to comment.