aboutsummaryrefslogtreecommitdiff
path: root/juick-server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-20 09:58:46 +0300
committerGravatar Vitaly Takmazov2018-09-20 09:58:46 +0300
commita9988515d26d3451bfad8bd5549f15c7648d5562 (patch)
tree792cc5d779bb781876ff37387fd51f337d438bd3 /juick-server
parent645fac47b98e57ca1cf891493811e4db6770ba49 (diff)
subscribe to email notifications on registration
Diffstat (limited to 'juick-server')
-rw-r--r--juick-server/src/main/java/com/juick/service/EmailServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/service/EmailServiceImpl.java b/juick-server/src/main/java/com/juick/service/EmailServiceImpl.java
index 5ba44e24..78bdd42a 100644
--- a/juick-server/src/main/java/com/juick/service/EmailServiceImpl.java
+++ b/juick-server/src/main/java/com/juick/service/EmailServiceImpl.java
@@ -55,7 +55,7 @@ public class EmailServiceImpl extends BaseJdbcService implements EmailService {
@Override
public boolean addEmail(Integer userId, String email) {
- return getJdbcTemplate().update("INSERT INTO emails(user_id,email) VALUES (?,?)", userId, email) > 0;
+ return getJdbcTemplate().update("INSERT INTO emails(user_id,email, subscr_hour) VALUES (?,?, 1)", userId, email) > 0;
}
@Override