Skip to content

Commit

Permalink
Fix #1311 entity.message is missing in Audit Logs API response (#1312)
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed May 14, 2024
1 parent 97144d6 commit 8a259b4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions json-logs/samples/audit/v1/logs.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@
],
"original_connected_channel_id": ""
},
"message": {
"channel": "",
"team": "",
"timestamp": ""
},
"huddle": {
"id": "",
"date_start": 123,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public static class Entity {
private Enterprise enterprise;
private File file;
private Channel channel;
private Message message;
private Huddle huddle;
private Role role;
private AccountTypeRole accountTypeRole;
Expand Down Expand Up @@ -124,6 +125,13 @@ public static class Channel {
private String originalConnectedChannelId;
}

@Data
public static class Message { // action: message_flagged
private String channel;
private String team;
private String timestamp;
}

@Data
public static class Workflow {
private String id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public void logs() throws Exception {
"getFile",
"getUsergroup",
"getChannel",
"getMessage",
"getWorkspace",
"getWorkflow",
"getWorkflowV2",
Expand Down

0 comments on commit 8a259b4

Please sign in to comment.