diff --git a/src/main/java/org/websoso/WSSServer/repository/NoticeRepository.java b/src/main/java/org/websoso/WSSServer/repository/NoticeRepository.java index 6ee5a20b6..f22882722 100644 --- a/src/main/java/org/websoso/WSSServer/repository/NoticeRepository.java +++ b/src/main/java/org/websoso/WSSServer/repository/NoticeRepository.java @@ -9,6 +9,6 @@ @Repository public interface NoticeRepository extends JpaRepository { - @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 findByUserId(Long userId); }