Ordering scene photos by media index.
This commit is contained in:
parent
28e71e2eb3
commit
e592647080
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue