Logging source during media delete.
This commit is contained in:
parent
ec83d43c76
commit
6fcd31f035
|
@ -1032,7 +1032,7 @@ async function flushOrphanedMedia(stage = 1) {
|
|||
logger.info(`Flushing orphaned media, stage ${stage}`);
|
||||
|
||||
const orphanedMedia = await knex('media')
|
||||
.select('id', 'path', 'thumbnail', 'lazy', 'is_s3')
|
||||
.select('id', 'path', 'thumbnail', 'lazy', 'is_s3', 'source')
|
||||
.where('is_sfw', false)
|
||||
.whereNotExists(
|
||||
knex.from(
|
||||
|
|
Loading…
Reference in New Issue