Skip to content

Commit

Permalink
Merge pull request #4254 from Roardom/fix-collection-search
Browse files Browse the repository at this point in the history
(Fix) Meilisearch search for collection id
  • Loading branch information
HDVinnie authored Oct 20, 2024
2 parents 2cd11b4 + 17e0640 commit b17e8d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Models/Torrent.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,10 @@ protected function casts(): array
WHERE genre_movie.movie_id = torrents.tmdb
)
),
'collection_id', (
SELECT collection_movie.collection_id
'collection', (
SELECT JSON_OBJECT(
'id', collection_movie.collection_id
)
FROM collection_movie
WHERE movies.id = collection_movie.movie_id
LIMIT 1
Expand Down

0 comments on commit b17e8d9

Please sign in to comment.