@@ -30,7 +30,7 @@ protected Group GetGroup(object id, GroupPermission permissions)
3030
3131 var group = id switch
3232 {
33- int idInt => Server . AllGroups . FindById ( idInt ) ,
33+ long idLong => Server . AllGroups . FindById ( idLong ) ,
3434 string idStr => Server . AllGroups . FindGroup ( idStr ) ,
3535 IIdOrPathAddressable gid when gid . Path != null => Server . AllGroups . FindByNamespacedPath ( gid . Path ) ,
3636 IIdOrPathAddressable gid => Server . AllGroups . FindById ( gid . Id ) ,
@@ -78,7 +78,7 @@ protected Project GetProject(object id, ProjectPermission permissions)
7878
7979 var project = id switch
8080 {
81- int idInt => Server . AllProjects . FindById ( idInt ) ,
81+ long idLong => Server . AllProjects . FindById ( idLong ) ,
8282 string idStr => Server . AllProjects . FindProject ( idStr ) ,
8383 IIdOrPathAddressable pid when pid . Path != null => Server . AllProjects . FindByNamespacedPath ( pid . Path ) ,
8484 IIdOrPathAddressable pid => Server . AllProjects . FindById ( pid . Id ) ,
@@ -116,7 +116,7 @@ protected Project GetProject(object id, ProjectPermission permissions)
116116 return project ;
117117 }
118118
119- protected User GetUser ( int userId )
119+ protected User GetUser ( long userId )
120120 {
121121 var user = Server . Users . GetById ( userId ) ;
122122 if ( user == null )
@@ -125,7 +125,7 @@ protected User GetUser(int userId)
125125 return user ;
126126 }
127127
128- protected Issue GetIssue ( int projectId , int issueId )
128+ protected Issue GetIssue ( long projectId , long issueId )
129129 {
130130 var project = GetProject ( projectId , ProjectPermission . View ) ;
131131 var issue = project . Issues . GetByIid ( issueId ) ;
@@ -135,7 +135,7 @@ protected Issue GetIssue(int projectId, int issueId)
135135 return issue ;
136136 }
137137
138- protected Milestone GetMilestone ( int projectId , int milestoneId )
138+ protected Milestone GetMilestone ( long projectId , long milestoneId )
139139 {
140140 var project = GetProject ( projectId , ProjectPermission . View ) ;
141141 var milestone = project . Milestones . GetByIid ( milestoneId ) ;
@@ -145,7 +145,7 @@ protected Milestone GetMilestone(int projectId, int milestoneId)
145145 return milestone ;
146146 }
147147
148- protected MergeRequest GetMergeRequest ( int projectId , int mergeRequestIid )
148+ protected MergeRequest GetMergeRequest ( long projectId , long mergeRequestIid )
149149 {
150150 var project = GetProject ( projectId , ProjectPermission . View ) ;
151151 var mergeRequest = project . MergeRequests . GetByIid ( mergeRequestIid ) ;
0 commit comments