fix: incorrect search

This commit is contained in:
Phan An 2022-07-05 16:19:52 +02:00
parent f1b0a62009
commit 5c60757d74
No known key found for this signature in database
GPG key ID: A81E4477F0BB6FDC

View file

@ -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
),
);