From 4eb8f560849cb0d3a92d8999e07d68c27ffdec9d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 24 Sep 2019 12:04:37 +0300 Subject: Send SystemActivity instead of SystemEvent --- src/main/java/com/juick/server/ServerManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/juick/server') diff --git a/src/main/java/com/juick/server/ServerManager.java b/src/main/java/com/juick/server/ServerManager.java index ca69f7d8..abdef1c2 100644 --- a/src/main/java/com/juick/server/ServerManager.java +++ b/src/main/java/com/juick/server/ServerManager.java @@ -108,7 +108,7 @@ public class ServerManager implements NotificationListener { try { var eventHeader = Collections.singletonMap("X-Event-Version", "1.0"); emailManager.sendEmail("noreply@juick.com", serviceEmail, "New system event", - jsonMapper.writeValueAsString(systemEvent), null, eventHeader); + jsonMapper.writeValueAsString(systemEvent.getActivity()), null, eventHeader); } catch (JsonProcessingException e) { logger.warn("JSON exception", e); } -- cgit v1.2.3