Доработан поиск артиста
This commit is contained in:
@@ -30,7 +30,7 @@ public class YandexSearchController : ControllerBase
|
||||
public async Task<ActionResult<ApiResponse<YandexSearchResult>>> SearchQuery(
|
||||
[FromQuery] string query,
|
||||
[FromQuery] int limit = 20,
|
||||
[FromQuery] TrackSearchType? searchType = TrackSearchType.All,
|
||||
[FromQuery] TrackSearchType searchType = TrackSearchType.All,
|
||||
[FromQuery] bool byId = false,
|
||||
[FromQuery] string? shared_id = null)
|
||||
{
|
||||
@@ -75,7 +75,7 @@ public class YandexSearchController : ControllerBase
|
||||
|
||||
if (byId)
|
||||
{
|
||||
results = await _yandexService.SearchTracksByIdAsync(user, query, searchType.Value, limit);
|
||||
results = await _yandexService.SearchTracksByIdAsync(user, query, searchType, limit);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user