Skip to content

Commit

Permalink
remove includeTopResults
Browse files Browse the repository at this point in the history
  • Loading branch information
rudrankriyam committed Jul 23, 2022
1 parent b6cbf51 commit 8ea8247
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/MusadoraKit/Catalog/CatalogSearch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,10 @@ public extension MusadoraKit {
static func catalogSearch(for term: String,
types: [MusicCatalogSearchType],
limit: Int? = nil,
offset: Int? = nil,
includeTopResults: Bool = true) async throws -> MusicCatalogSearchResponse {
offset: Int? = nil) async throws -> MusicCatalogSearchResponse {
let searchTypes = types.compactMap { $0.type }
var request = MusicCatalogSearchRequest(term: term, types: searchTypes)
request.includeTopResults = includeTopResults
// request.includeTopResults = includeTopResults /// Waiting for Beta 4 for it to be fixed.
request.limit = limit
request.offset = offset
let response = try await request.response()
Expand Down

0 comments on commit 8ea8247

Please sign in to comment.