Retired visitor database connection. Fixed empty traxxx breaking on missing batch IDs.
This commit is contained in:
@@ -153,7 +153,7 @@ export async function fetchScenesById(sceneIds, { reqUser, ...context } = {}) {
|
||||
teasers,
|
||||
fingerprints,
|
||||
stashes,
|
||||
lastBatch: { id: lastBatchId },
|
||||
lastBatch,
|
||||
} = await promiseProps({
|
||||
scenes: knex('releases').whereIn('releases.id', sceneIds),
|
||||
channels: knex('releases')
|
||||
@@ -348,7 +348,7 @@ export async function fetchScenesById(sceneIds, { reqUser, ...context } = {}) {
|
||||
fingerprints: sceneFingerprints,
|
||||
stashes: sceneStashes,
|
||||
actorStashes: sceneActorStashes,
|
||||
lastBatchId,
|
||||
lastBatchId: lastBatch?.id,
|
||||
}, reqUser);
|
||||
}).filter(Boolean);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user