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 9217a6b commit bd86171
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ public BeekeeperHistoryService(BeekeeperHistoryRepository beekeeperHistoryReposi
}

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

BeekeeperHistory event = BeekeeperHistory.builder()
.id(housekeepingEntity.getId())
.eventTimestamp(LocalDateTime.now())
.databaseName(housekeepingEntity.getDatabaseName())
.tableName(housekeepingEntity.getTableName())
.lifecycleType(housekeepingEntity.getLifecycleType())
.housekeepingStatus(status.name())
.eventDetails(eventDetails)
.eventDetails(housekeepingEntity.toString())
.build();

log.info("Saving activity in Beekeeper History table; {}", event);
Expand Down

0 comments on commit bd86171

Please sign in to comment.