Skip to content

Commit

Permalink
Use bracket notation for relevant get_events params
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Chan authored and henrylamchan committed Jul 23, 2020
1 parent f302209 commit 6cc2faa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions workos/audit_trail.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,25 +126,25 @@ def get_events(
}

if group is not None:
params["group"] = group
params["group[]"] = group

if action is not None:
params["action"] = action
params["action[]"] = action

if action_type is not None:
params["action_type"] = action_type
params["action_type[]"] = action_type

if actor_name is not None:
params["actor_name"] = actor_name
params["actor_name[]"] = actor_name

if actor_id is not None:
params["actor_id"] = actor_id
params["actor_id[]"] = actor_id

if target_name is not None:
params["target_name"] = target_name
params["target_name[]"] = target_name

if target_id is not None:
params["target_id"] = target_id
params["target_id[]"] = target_id

if occurred_at is not None:
params["occurred_at"] = occurred_at
Expand Down

0 comments on commit 6cc2faa

Please sign in to comment.