Fixed GraphQL query for scenes REST API. Added entry ID to scene search document.

This commit is contained in:
DebaucheryLibrarian 2022-01-12 17:50:23 +01:00
parent e24add98ea
commit bbd788699e
2 changed files with 4 additions and 3 deletions

View File

@ -59,7 +59,7 @@ const releaseFields = `
slug slug
} }
} }
poster: chaptersPosterByChapterId { poster: chaptersPoster {
media { media {
id id
path path
@ -82,7 +82,7 @@ const releaseFields = `
} }
} }
} }
poster: releasesPosterByReleaseId { poster: releasesPoster {
media { media {
id id
path path
@ -104,7 +104,7 @@ const releaseFields = `
size size
} }
} }
trailer: releasesTrailerByReleaseId @include (if: $full) { trailer: releasesTrailer @include (if: $full) {
media { media {
id id
path path

View File

@ -234,6 +234,7 @@ async function updateSceneSearch(releaseIds) {
TO_TSVECTOR( TO_TSVECTOR(
'english', 'english',
COALESCE(releases.title, '') || ' ' || COALESCE(releases.title, '') || ' ' ||
releases.entry_id || ' ' ||
entities.name || ' ' || entities.name || ' ' ||
entities.slug || ' ' || entities.slug || ' ' ||
COALESCE(array_to_string(entities.alias, ' '), '') || ' ' || COALESCE(array_to_string(entities.alias, ' '), '') || ' ' ||