diff options
author | Vitaly Takmazov | 2018-09-20 09:58:46 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-09-20 09:58:46 +0300 |
commit | a9988515d26d3451bfad8bd5549f15c7648d5562 (patch) | |
tree | 792cc5d779bb781876ff37387fd51f337d438bd3 /juick-server/src/main/java/com/juick/service | |
parent | 645fac47b98e57ca1cf891493811e4db6770ba49 (diff) |
subscribe to email notifications on registration
Diffstat (limited to 'juick-server/src/main/java/com/juick/service')
-rw-r--r-- | juick-server/src/main/java/com/juick/service/EmailServiceImpl.java | 2 |
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 |