Skip to content

Commit

Permalink
Filter by server_type only for assembla (#1296)
Browse files Browse the repository at this point in the history
Co-authored-by: AndriiMysko <[email protected]>
  • Loading branch information
AndriiMysko and AndriiMysko committed Aug 30, 2023
1 parent 0d2febb commit 1af94e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/travis/api/v3/queries/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def by_slug
repo_name.downcase,
"#{provider.downcase}repository"
)
repos = repos.by_server_type(server_type) if server_type
repos = repos.by_server_type(server_type) if server_type && provider == 'assembla'

repos.order("updated_at desc, vcs_slug asc, owner_name asc, name asc, vcs_type asc")
.first
Expand Down

0 comments on commit 1af94e3

Please sign in to comment.