Update query to also return events that update the workspace

This commit is contained in:
leigh-mil
2019-01-08 15:00:41 -05:00
parent 466f2565b5
commit a48b814263
2 changed files with 9 additions and 2 deletions

View File

@@ -99,4 +99,4 @@ def test_ws_audit_log_only_includes_current_ws_events():
events = AuditLog.get_workspace_events(workspace.owner, workspace)
for event in events:
assert event.workspace_id == workspace.id
assert event.workspace_id == workspace.id or event.resource_id == workspace.id