Transfer tool finds existing media by source.
This commit is contained in:
parent
84c59bd05a
commit
18e91d54f1
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue