Logging source during media delete.

This commit is contained in:
DebaucheryLibrarian 2025-03-04 03:47:15 +01:00
parent ec83d43c76
commit 6fcd31f035
1 changed files with 1 additions and 1 deletions

View File

@ -1032,7 +1032,7 @@ async function flushOrphanedMedia(stage = 1) {
logger.info(`Flushing orphaned media, stage ${stage}`); logger.info(`Flushing orphaned media, stage ${stage}`);
const orphanedMedia = await knex('media') const orphanedMedia = await knex('media')
.select('id', 'path', 'thumbnail', 'lazy', 'is_s3') .select('id', 'path', 'thumbnail', 'lazy', 'is_s3', 'source')
.where('is_sfw', false) .where('is_sfw', false)
.whereNotExists( .whereNotExists(
knex.from( knex.from(