diff --git a/src/main/java/com/loafle/overflow/module/noauthprobe/dao/NoAuthProbeDAO.java b/src/main/java/com/loafle/overflow/module/noauthprobe/dao/NoAuthProbeDAO.java index 8277673..db6d15a 100644 --- a/src/main/java/com/loafle/overflow/module/noauthprobe/dao/NoAuthProbeDAO.java +++ b/src/main/java/com/loafle/overflow/module/noauthprobe/dao/NoAuthProbeDAO.java @@ -19,7 +19,7 @@ public interface NoAuthProbeDAO extends JpaRepository { // @Query("SELECT n FROM NoAuthProbe n WHERE n.tempProbeKey = :tempProbeKey") NoAuthProbe findByTempProbeKey(String tempProbeKey); - -// @Query("SELECT n FROM NoAuthProbe n WHERE n.domain.id = :domainId") - List findAllByDomain(Domain domain); +// @Query("select m from Member m WHERE m.email = :#{#m2.email}") + @Query("SELECT n FROM NoAuthProbe n WHERE n.domain.id = :#{#domain.id} and n.status = 'P'") + List findAllByDomain(@Param("domain") Domain domain); }