From d767b84a27b6864897bbfbd8c9250550975c5d45 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 25 Dec 2017 12:34:28 +0300 Subject: email notifications settings --- juick-www/src/main/java/com/juick/www/controllers/Settings.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'juick-www/src/main/java/com/juick/www') diff --git a/juick-www/src/main/java/com/juick/www/controllers/Settings.java b/juick-www/src/main/java/com/juick/www/controllers/Settings.java index 64775aec..a2459654 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/Settings.java +++ b/juick-www/src/main/java/com/juick/www/controllers/Settings.java @@ -214,11 +214,9 @@ public class Settings { } break; case "email-subscr": - if (emailService.setSubscriptionHour(visitor.getUid(), request.getParameter("account"), - request.getParameter("time"))) { - result = String.format("
Saved! Will send to %s at %s:00 GMT." + - "
", request.getParameter("account"), - request.getParameter("time")); + if (emailService.setNotificationsEmail(visitor.getUid(), request.getParameter("account"))) { + result = String.format("Saved! Will send notifications to %s." + + "
", request.getParameter("account")); } else { result = "Disabled.
"; } -- cgit v1.2.3