diff options
author | Vitaly Takmazov | 2019-09-24 12:04:37 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-09-24 12:04:37 +0300 |
commit | 4eb8f560849cb0d3a92d8999e07d68c27ffdec9d (patch) | |
tree | a300655f7ba170e0096c00aad5ac9d00dbc20195 /src | |
parent | 2f2e9aab6194037259625200091949d8648e3409 (diff) |
Send SystemActivity instead of SystemEvent
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/juick/server/ServerManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |