forked from DebaucheryLibrarian/traxxx
Storing associations if existing media are found.
This commit is contained in:
@@ -828,7 +828,7 @@ async function associateReleaseMedia(releases, type = 'release') {
|
|||||||
const media = storedMediasById[baseMedia.id];
|
const media = storedMediasById[baseMedia.id];
|
||||||
const mediaId = media?.use || media?.entry?.id;
|
const mediaId = media?.use || media?.entry?.id;
|
||||||
|
|
||||||
if (mediaId && storedMediasById[mediaId]) {
|
if (mediaId) {
|
||||||
acc.push({
|
acc.push({
|
||||||
[`${type}_id`]: releaseId,
|
[`${type}_id`]: releaseId,
|
||||||
media_id: mediaId,
|
media_id: mediaId,
|
||||||
|
|||||||
Reference in New Issue
Block a user