Storing associations if existing media are found.

This commit is contained in:
DebaucheryLibrarian 2022-02-07 01:57:09 +01:00
parent 9abc1d48ac
commit 4bcf7ef45b
1 changed files with 1 additions and 1 deletions

View File

@ -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,