Skip to content

Commit af5b6c6

Browse files
Henry Chanhenrylamchan
authored andcommitted
Fix get_events filtering
1 parent eeb499f commit af5b6c6

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"] = list(group)
129+
params["group"] = group
130130

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

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

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

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

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

146146
if target_id is not None:
147-
params["target_id"] = list(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)