diff --git a/src/main/java/com/loafle/overflow/proxy/db/DBProxy.java b/src/main/java/com/loafle/overflow/proxy/db/DBProxy.java index 292d0d9..8125c0b 100644 --- a/src/main/java/com/loafle/overflow/proxy/db/DBProxy.java +++ b/src/main/java/com/loafle/overflow/proxy/db/DBProxy.java @@ -9,6 +9,7 @@ import com.loafle.overflow.commons.dao.JPABaseDAO; import com.loafle.overflow.db.api.DBGrpc; import com.loafle.overflow.db.api.DBInput; import com.loafle.overflow.db.api.DBOutput; +import com.loafle.overflow.email.dao.JPAEmailAuthDAO; import com.loafle.overflow.member.dao.JPAMemberDAO; import com.loafle.overflow.noauthagent.dao.JPANoAuthAgentDAO; import io.grpc.ServerBuilder; @@ -40,12 +41,13 @@ public class DBProxy { JPAAgentDAO agentDao = new JPAAgentDAO(); JPANoAuthAgentDAO jpaNoAuthAgentDAO = new JPANoAuthAgentDAO(); JPAApiKeyDao jpaApiKeyDao = new JPAApiKeyDao(); + JPAEmailAuthDAO emailAuthDAO = new JPAEmailAuthDAO(); daoMap.put("member", memberDao); daoMap.put("agent", agentDao); daoMap.put("noauthAgent", jpaNoAuthAgentDAO); daoMap.put("apiKey", jpaApiKeyDao); - daoMap.put("emailAuth", jpaApiKeyDao); + daoMap.put("emailAuth", emailAuthDAO); } public void start(int port) throws IOException {