Skip to content

Commit

Permalink
hack
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Gorzala committed Dec 26, 2023
1 parent 1b95ec9 commit ec2315c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/net/dancier/dancer/core/ProfileService.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@ public void updateProfileForUserId(UUID userId, ProfileOfCurrentUserDto profileO
}
handleDancerProfiles(dancer, profileOfCurrentUserDto);
dancer.setUpdatedAt(Instant.now());
dancer = dancerRepository.save(dancer);

dancerRepository.save(dancer);
dancer = dancerRepository.findById(dancer.getId()).get();

log.info("{}/{}", dancer.getVersion(), oldVersion);
if (!dancer.getVersion().equals(oldVersion)) {
if (dancer.getVersion().equals(oldVersion)) {
log.info("Profile-Change detected");
applicationEventPublisher.publishEvent(
ProfileUpdatedEvent
Expand Down

0 comments on commit ec2315c

Please sign in to comment.