@@ -55,7 +55,7 @@ public List<Event> getAuthenticatedUserEvents(ActionType action, TargetType targ
5555
5656 GitLabApiForm formData = new GitLabApiForm ()
5757 .withParam ("action" , action )
58- .withParam ("target_type" , targetType )
58+ .withParam ("target_type" , targetType != null ? targetType . toValue (). toLowerCase () : null )
5959 .withParam ("before" , before )
6060 .withParam ("after" , after )
6161 .withParam ("sort" , sortOrder )
@@ -85,7 +85,7 @@ public Pager<Event> getAuthenticatedUserEvents(ActionType action, TargetType tar
8585
8686 GitLabApiForm formData = new GitLabApiForm ()
8787 .withParam ("action" , action )
88- .withParam ("target_type" , targetType )
88+ .withParam ("target_type" , targetType != null ? targetType . toValue (). toLowerCase () : null )
8989 .withParam ("before" , before )
9090 .withParam ("after" , after )
9191 .withParam ("sort" , sortOrder );
@@ -137,7 +137,7 @@ public List<Event> getUserEvents(Integer userId, ActionType action, TargetType t
137137
138138 GitLabApiForm formData = new GitLabApiForm ()
139139 .withParam ("action" , action )
140- .withParam ("target_type" , targetType )
140+ .withParam ("target_type" , targetType != null ? targetType . toValue (). toLowerCase () : null )
141141 .withParam ("before" , before )
142142 .withParam ("after" , after )
143143 .withParam ("sort" , sortOrder )
@@ -172,7 +172,7 @@ public Pager<Event> getUserEvents(Integer userId, ActionType action, TargetType
172172
173173 GitLabApiForm formData = new GitLabApiForm ()
174174 .withParam ("action" , action )
175- .withParam ("target_type" , targetType )
175+ .withParam ("target_type" , targetType != null ? targetType . toValue (). toLowerCase () : null )
176176 .withParam ("before" , before )
177177 .withParam ("after" , after )
178178 .withParam ("sort" , sortOrder );
@@ -224,7 +224,7 @@ public List<Event> getProjectEvents(Integer projectId, ActionType action, Target
224224
225225 GitLabApiForm formData = new GitLabApiForm ()
226226 .withParam ("action" , action )
227- .withParam ("target_type" , targetType )
227+ .withParam ("target_type" , targetType != null ? targetType . toValue (). toLowerCase () : null )
228228 .withParam ("before" , before )
229229 .withParam ("after" , after )
230230 .withParam ("sort" , sortOrder )
@@ -259,7 +259,7 @@ public Pager<Event> getProjectEvents(Integer projectId, ActionType action, Targe
259259
260260 GitLabApiForm formData = new GitLabApiForm ()
261261 .withParam ("action" , action )
262- .withParam ("target_type" , targetType )
262+ .withParam ("target_type" , targetType != null ? targetType . toValue (). toLowerCase () : null )
263263 .withParam ("before" , before )
264264 .withParam ("after" , after )
265265 .withParam ("sort" , sortOrder );
0 commit comments