mirror of
https://github.com/koel/koel
synced 2024-11-10 14:44:13 +00:00
fix: incorrect search
This commit is contained in:
parent
f1b0a62009
commit
5c60757d74
1 changed files with 3 additions and 3 deletions
|
@ -34,15 +34,15 @@ class SearchService
|
|||
|
||||
return ExcerptSearchResult::make(
|
||||
$this->songRepository->getByIds(
|
||||
Song::search($keywords)->take($count)->get()->pluck('id')->all(),
|
||||
Song::search($keywords)->get()->take($count)->pluck('id')->all(),
|
||||
$scopedUser
|
||||
),
|
||||
$this->artistRepository->getByIds(
|
||||
Artist::search($keywords)->take($count)->get()->pluck('id')->all(),
|
||||
Artist::search($keywords)->get()->take($count)->pluck('id')->all(),
|
||||
$scopedUser
|
||||
),
|
||||
$this->albumRepository->getByIds(
|
||||
Album::search($keywords)->take($count)->get()->pluck('id')->all(),
|
||||
Album::search($keywords)->get()->take($count)->pluck('id')->all(),
|
||||
$scopedUser
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue