From 3021b10cf8a2dc77d6d98d161b7dd34a4da26d78 Mon Sep 17 00:00:00 2001 From: Marc Gorzala Date: Wed, 27 Dec 2023 07:11:37 +0100 Subject: [PATCH] profile updated now not through eventlog anymore --- .../dancier/dancer/core/events/ApplicationEventListener.java | 4 ---- .../net/dancier/dancer/eventlog/service/EventlogService.java | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/net/dancier/dancer/core/events/ApplicationEventListener.java b/src/main/java/net/dancier/dancer/core/events/ApplicationEventListener.java index 0926188..f07f2c5 100644 --- a/src/main/java/net/dancier/dancer/core/events/ApplicationEventListener.java +++ b/src/main/java/net/dancier/dancer/core/events/ApplicationEventListener.java @@ -30,10 +30,6 @@ public class ApplicationEventListener { @Transactional public void handle(ProfileUpdatedEvent profileUpdatedEvent) { log.info("Got a Profile Change: {}", profileUpdatedEvent); - eventlogService.appendNew( - eventCreator.createEventlog( - "profile-updated", - profileUpdatedEvent.getDancer())); scheduleMessagePort.schedule( profileUpdatedEvent, profileUpdatedEvent.getDancer().getId().toString(), diff --git a/src/main/java/net/dancier/dancer/eventlog/service/EventlogService.java b/src/main/java/net/dancier/dancer/eventlog/service/EventlogService.java index 44a382f..dacc1e3 100644 --- a/src/main/java/net/dancier/dancer/eventlog/service/EventlogService.java +++ b/src/main/java/net/dancier/dancer/eventlog/service/EventlogService.java @@ -42,8 +42,7 @@ public class EventlogService { EventlogConfig.of("app-instance-id-created", NO_SPECIAL_ROLE_NEEDED), EventlogConfig.of("navigated-to-page", NO_SPECIAL_ROLE_NEEDED), EventlogConfig.of("human-session-created", AT_LEAST_HUMAN), - EventlogConfig.of("contact-message-sent", AT_LEAST_HUMAN), - EventlogConfig.of("profile-updated", DEFAULT_AUTHENTICATED) // will not go over the eventlog stuff in the future... + EventlogConfig.of("contact-message-sent", AT_LEAST_HUMAN) ); public void appendNew(Eventlog eventlog) {