Ordering scene photos by media index.

This commit is contained in:
DebaucheryLibrarian 2024-06-04 03:00:23 +02:00
parent 28e71e2eb3
commit e592647080
1 changed files with 2 additions and 1 deletions

View File

@ -164,8 +164,9 @@ export async function fetchScenesById(sceneIds, { reqUser, ...context } = {}) {
}
return trx('releases_photos')
.leftJoin('media', 'media.id', 'releases_photos.media_id')
.whereIn('release_id', sceneIds)
.leftJoin('media', 'media.id', 'releases_photos.media_id');
.orderBy('index');
}),
trailers: knex.transaction(async (trx) => {
if (reqUser) {