diff --git a/src/main/java/com/loafle/overflow/module/probe/dao/ProbeDAO.java b/src/main/java/com/loafle/overflow/module/probe/dao/ProbeDAO.java index 0badb67..36af79f 100644 --- a/src/main/java/com/loafle/overflow/module/probe/dao/ProbeDAO.java +++ b/src/main/java/com/loafle/overflow/module/probe/dao/ProbeDAO.java @@ -17,5 +17,5 @@ public interface ProbeDAO extends JpaRepository { Probe findByProbeKey(String probeKey); - List findAllByDomain(Domain domain); + List findAllByDomainOrderByIdDesc(Domain domain); } \ No newline at end of file diff --git a/src/main/java/com/loafle/overflow/module/probe/service/ProbeService.java b/src/main/java/com/loafle/overflow/module/probe/service/ProbeService.java index 0c05c03..96ca37c 100644 --- a/src/main/java/com/loafle/overflow/module/probe/service/ProbeService.java +++ b/src/main/java/com/loafle/overflow/module/probe/service/ProbeService.java @@ -23,7 +23,7 @@ public class ProbeService { public List readAllByDomain(Domain domain) { - return this.probeDAO.findAllByDomain(domain); + return this.probeDAO.findAllByDomainOrderByIdDesc(domain); } public Probe read(long id) {