Skip to content

Commit

Permalink
Implement suggestion from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
JayGreeeen committed Nov 27, 2024
1 parent e6a5faa commit 9217a6b
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public BeekeeperHistoryService(BeekeeperHistoryRepository beekeeperHistoryReposi
}

public void saveHistory(HousekeepingEntity housekeepingEntity, HousekeepingStatus status) {
String eventDetails = getEventDetails(housekeepingEntity);
String eventDetails = housekeepingEntity.toString();

BeekeeperHistory event = BeekeeperHistory.builder()
.id(housekeepingEntity.getId())
Expand All @@ -36,8 +36,4 @@ public void saveHistory(HousekeepingEntity housekeepingEntity, HousekeepingStatu
log.info("Saving activity in Beekeeper History table; {}", event);
beekeeperHistoryRepository.save(event);
}

private String getEventDetails(HousekeepingEntity entity) {
return entity.toString();
}
}

0 comments on commit 9217a6b

Please sign in to comment.