Mapping avatar to media ID in orphan delete.

This commit is contained in:
DebaucheryLibrarian 2020-10-27 02:34:06 +01:00
parent af7fa56e02
commit 7257776ba8
1 changed files with 1 additions and 1 deletions

View File

@ -761,7 +761,7 @@ async function flushOrphanedMedia() {
knex('releases_teasers').select('media_id'),
knex('movies_covers').select('media_id'),
knex('movies_trailers').select('media_id'),
knex('actors_profiles').select('avatar_media_id').as('media_id'),
knex('actors_profiles').select(knex.raw('avatar_media_id as media_id')),
knex('actors_photos').select('media_id'),
knex('clips_photos').select('media_id'),
knex('clips_posters').select('media_id'),