forked from DebaucheryLibrarian/traxxx
Transfer tool finds existing media by source.
This commit is contained in:
@@ -455,6 +455,7 @@ async function addReleaseMedia(medias, release, target) {
|
||||
|
||||
const existingMedia = await knex('media')
|
||||
.where('hash', media.hash)
|
||||
.orWhere('source', media.source)
|
||||
.first();
|
||||
|
||||
const id = existingMedia?.id || nanoid();
|
||||
|
||||
Reference in New Issue
Block a user