Skip to content

Commit 6cc2faa

Browse files
Henry Chanhenrylamchan
authored andcommitted
Use bracket notation for relevant get_events params
1 parent f302209 commit 6cc2faa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

workos/audit_trail.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,25 +126,25 @@ def get_events(
126126
}
127127

128128
if group is not None:
129-
params["group"] = group
129+
params["group[]"] = group
130130

131131
if action is not None:
132-
params["action"] = action
132+
params["action[]"] = action
133133

134134
if action_type is not None:
135-
params["action_type"] = action_type
135+
params["action_type[]"] = action_type
136136

137137
if actor_name is not None:
138-
params["actor_name"] = actor_name
138+
params["actor_name[]"] = actor_name
139139

140140
if actor_id is not None:
141-
params["actor_id"] = actor_id
141+
params["actor_id[]"] = actor_id
142142

143143
if target_name is not None:
144-
params["target_name"] = target_name
144+
params["target_name[]"] = target_name
145145

146146
if target_id is not None:
147-
params["target_id"] = target_id
147+
params["target_id[]"] = target_id
148148

149149
if occurred_at is not None:
150150
params["occurred_at"] = occurred_at

0 commit comments

Comments
 (0)