@@ -55,7 +55,7 @@ public List<Event> getAuthenticatedUserEvents(ActionType action, TargetType targ
55
55
56
56
GitLabApiForm formData = new GitLabApiForm ()
57
57
.withParam ("action" , action )
58
- .withParam ("target_type" , targetType )
58
+ .withParam ("target_type" , targetType != null ? targetType . toValue (). toLowerCase () : null )
59
59
.withParam ("before" , before )
60
60
.withParam ("after" , after )
61
61
.withParam ("sort" , sortOrder )
@@ -85,7 +85,7 @@ public Pager<Event> getAuthenticatedUserEvents(ActionType action, TargetType tar
85
85
86
86
GitLabApiForm formData = new GitLabApiForm ()
87
87
.withParam ("action" , action )
88
- .withParam ("target_type" , targetType )
88
+ .withParam ("target_type" , targetType != null ? targetType . toValue (). toLowerCase () : null )
89
89
.withParam ("before" , before )
90
90
.withParam ("after" , after )
91
91
.withParam ("sort" , sortOrder );
@@ -137,7 +137,7 @@ public List<Event> getUserEvents(Integer userId, ActionType action, TargetType t
137
137
138
138
GitLabApiForm formData = new GitLabApiForm ()
139
139
.withParam ("action" , action )
140
- .withParam ("target_type" , targetType )
140
+ .withParam ("target_type" , targetType != null ? targetType . toValue (). toLowerCase () : null )
141
141
.withParam ("before" , before )
142
142
.withParam ("after" , after )
143
143
.withParam ("sort" , sortOrder )
@@ -172,7 +172,7 @@ public Pager<Event> getUserEvents(Integer userId, ActionType action, TargetType
172
172
173
173
GitLabApiForm formData = new GitLabApiForm ()
174
174
.withParam ("action" , action )
175
- .withParam ("target_type" , targetType )
175
+ .withParam ("target_type" , targetType != null ? targetType . toValue (). toLowerCase () : null )
176
176
.withParam ("before" , before )
177
177
.withParam ("after" , after )
178
178
.withParam ("sort" , sortOrder );
@@ -224,7 +224,7 @@ public List<Event> getProjectEvents(Integer projectId, ActionType action, Target
224
224
225
225
GitLabApiForm formData = new GitLabApiForm ()
226
226
.withParam ("action" , action )
227
- .withParam ("target_type" , targetType )
227
+ .withParam ("target_type" , targetType != null ? targetType . toValue (). toLowerCase () : null )
228
228
.withParam ("before" , before )
229
229
.withParam ("after" , after )
230
230
.withParam ("sort" , sortOrder )
@@ -259,7 +259,7 @@ public Pager<Event> getProjectEvents(Integer projectId, ActionType action, Targe
259
259
260
260
GitLabApiForm formData = new GitLabApiForm ()
261
261
.withParam ("action" , action )
262
- .withParam ("target_type" , targetType )
262
+ .withParam ("target_type" , targetType != null ? targetType . toValue (). toLowerCase () : null )
263
263
.withParam ("before" , before )
264
264
.withParam ("after" , after )
265
265
.withParam ("sort" , sortOrder );
0 commit comments