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
|
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
|
||||||
|
|
|
@ -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, ' '), '') || ' ' ||
|
||||||
|
|
Loading…
Reference in New Issue