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
}
}
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

View File

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