From f321bef7828b8ad024514df473c1de55bfe85157 Mon Sep 17 00:00:00 2001 From: geek Date: Wed, 7 Jun 2017 15:11:45 +0900 Subject: [PATCH] emailAuth push for daoMap --- src/main/java/com/loafle/overflow/proxy/db/DBProxy.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {