From bd86171efb190c93bf2378048684d339e1fe7302 Mon Sep 17 00:00:00 2001 From: jgreenstevens Date: Wed, 27 Nov 2024 13:44:06 +0000 Subject: [PATCH] Implement suggestion from PR --- .../beekeeper/core/service/BeekeeperHistoryService.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/beekeeper-core/src/main/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryService.java b/beekeeper-core/src/main/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryService.java index 6f025eed..dc4b7427 100644 --- a/beekeeper-core/src/main/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryService.java +++ b/beekeeper-core/src/main/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryService.java @@ -21,8 +21,6 @@ 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()) @@ -30,7 +28,7 @@ public void saveHistory(HousekeepingEntity housekeepingEntity, HousekeepingStatu .tableName(housekeepingEntity.getTableName()) .lifecycleType(housekeepingEntity.getLifecycleType()) .housekeepingStatus(status.name()) - .eventDetails(eventDetails) + .eventDetails(housekeepingEntity.toString()) .build(); log.info("Saving activity in Beekeeper History table; {}", event);