diff --git a/src/main/java/seatsio/eventLog/EventLogItem.java b/src/main/java/seatsio/eventLog/EventLogItem.java index 0e50a70..d1e632d 100644 --- a/src/main/java/seatsio/eventLog/EventLogItem.java +++ b/src/main/java/seatsio/eventLog/EventLogItem.java @@ -7,7 +7,6 @@ public class EventLogItem { public long id; public String type; - public String workspaceKey; - public Instant date; + public Instant timestamp; public Map data; } diff --git a/src/test/java/seatsio/eventLog/ListEventLogItemsTest.java b/src/test/java/seatsio/eventLog/ListEventLogItemsTest.java index ca059dd..ad640c2 100644 --- a/src/test/java/seatsio/eventLog/ListEventLogItemsTest.java +++ b/src/test/java/seatsio/eventLog/ListEventLogItemsTest.java @@ -39,9 +39,8 @@ public void properties() throws InterruptedException { EventLogItem eventLogItem = eventLogItems.findFirst().get(); assertThat(eventLogItem.type).isEqualTo("chart.created"); - assertThat(eventLogItem.date).isNotNull(); - assertThat(eventLogItem.workspaceKey).isEqualTo(workspace.key); - assertThat(eventLogItem.data).isEqualTo(Map.of("key", chart.key)); + assertThat(eventLogItem.timestamp).isNotNull(); + assertThat(eventLogItem.data).isEqualTo(Map.of("key", chart.key, "workspaceKey", workspace.key)); assertThat(eventLogItem.id).isGreaterThan(0); }