Fixed GraphQL query for scenes REST API. Added entry ID to scene search document.
This commit is contained in:
parent
e24add98ea
commit
bbd788699e
|
@ -59,7 +59,7 @@ const releaseFields = `
|
|||
slug
|
||||
}
|
||||
}
|
||||
poster: chaptersPosterByChapterId {
|
||||
poster: chaptersPoster {
|
||||
media {
|
||||
id
|
||||
path
|
||||
|
@ -82,7 +82,7 @@ const releaseFields = `
|
|||
}
|
||||
}
|
||||
}
|
||||
poster: releasesPosterByReleaseId {
|
||||
poster: releasesPoster {
|
||||
media {
|
||||
id
|
||||
path
|
||||
|
@ -104,7 +104,7 @@ const releaseFields = `
|
|||
size
|
||||
}
|
||||
}
|
||||
trailer: releasesTrailerByReleaseId @include (if: $full) {
|
||||
trailer: releasesTrailer @include (if: $full) {
|
||||
media {
|
||||
id
|
||||
path
|
||||
|
|
|
@ -234,6 +234,7 @@ async function updateSceneSearch(releaseIds) {
|
|||
TO_TSVECTOR(
|
||||
'english',
|
||||
COALESCE(releases.title, '') || ' ' ||
|
||||
releases.entry_id || ' ' ||
|
||||
entities.name || ' ' ||
|
||||
entities.slug || ' ' ||
|
||||
COALESCE(array_to_string(entities.alias, ' '), '') || ' ' ||
|
||||
|
|
Loading…
Reference in New Issue