Skip to content

Commit

Permalink
profile updated now not through eventlog anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Gorzala committed Dec 27, 2023
1 parent 571c502 commit 3021b10
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3021b10

Please sign in to comment.