Minor channel logo fixes.

This commit is contained in:
2024-07-08 05:01:13 +02:00
parent b254bc22a4
commit d7372a518e
7 changed files with 26 additions and 9 deletions

View File

@@ -76,7 +76,7 @@ function curateScene(rawScene, assets) {
slug: assets.channel.network_slug,
name: assets.channel.network_name,
type: assets.channel.network_type,
hasLogo: assets.channel.has_logo,
hasLogo: assets.channel.network_has_logo,
} : null,
affiliate: assets.channel.affiliate ? {
id: assets.channel.affiliate.id,
@@ -151,6 +151,7 @@ export async function fetchScenesById(sceneIds, { reqUser, ...context } = {}) {
'networks.slug as network_slug',
'networks.name as network_name',
'networks.type as network_type',
'networks.has_logo as network_has_logo',
knex.raw('row_to_json(affiliates) as affiliate'),
)
.whereIn('releases.id', sceneIds)