File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
backend/plugins/gitlab/tasks Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,10 @@ func CollectAccounts(taskCtx plugin.SubTaskContext) errors.Error {
6363 urlTemplate = "/users"
6464 }
6565
66+ apiVersion := data .ApiClient .GetData (models .GitlabApiClientData_ApiVersion ).(string )
67+
6668 useKeyset := false
67- if urlTemplate == "/users" && semver .IsValid (apiVersion ) && semver .Compare (data . ApiClient . GetData ( models . GitlabApiClientData_ApiVersion ).( string ) , KEYSET_MIN_VERSION )>= 0 {
69+ if urlTemplate == "/users" && semver .IsValid (apiVersion ) && semver .Compare (apiVersion , KEYSET_MIN_VERSION )>= 0 {
6870 useKeyset = true
6971 } else if urlTemplate == "/users" && ! semver .IsValid (apiVersion ) {
7072 // If version unknown, be conservative for CE 11–16.4: default to offset
You can’t perform that action at this time.
0 commit comments