Added movies overview page. Fixed channel filter duplicates.
This commit is contained in:
@@ -80,6 +80,7 @@ export async function fetchScenesById(sceneIds) {
|
||||
.groupBy('channels.id', 'networks.id'),
|
||||
knex('releases_actors')
|
||||
.select(
|
||||
'actors.*',
|
||||
'actors_meta.*',
|
||||
'releases_actors.release_id',
|
||||
/* why would we need this for scenes?
|
||||
@@ -90,7 +91,8 @@ export async function fetchScenesById(sceneIds) {
|
||||
*/
|
||||
)
|
||||
.whereIn('release_id', sceneIds)
|
||||
.leftJoin('actors_meta', 'actors_meta.id', 'releases_actors.actor_id'),
|
||||
.leftJoin('actors', 'actors.id', 'releases_actors.actor_id')
|
||||
.leftJoin('actors_meta', 'actors_meta.actor_id', 'actors.id'),
|
||||
/*
|
||||
.leftJoin('countries as birth_countries', 'birth_countries.alpha2', 'actors_meta.birth_country_alpha2')
|
||||
.leftJoin('countries as residence_countries', 'residence_countries.alpha2', 'actors_meta.residence_country_alpha2'),
|
||||
@@ -321,8 +323,6 @@ export async function fetchScenes(filters, rawOptions) {
|
||||
},
|
||||
});
|
||||
|
||||
console.log(result.hits.hits);
|
||||
|
||||
const actorCounts = options.aggregateActors && countAggregations(result.aggregations?.actorIds?.buckets);
|
||||
const tagCounts = options.aggregateTags && countAggregations(result.aggregations?.tagIds?.buckets);
|
||||
const channelCounts = options.aggregateChannels && countAggregations(result.aggregations?.channelIds?.buckets);
|
||||
|
||||
Reference in New Issue
Block a user