« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/data/things/artist.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/data/things/artist.js b/src/data/things/artist.js
index 0878edd5..6e148d1d 100644
--- a/src/data/things/artist.js
+++ b/src/data/things/artist.js
@@ -154,6 +154,12 @@ export class Artist extends Thing {
       mode: input.value('contributions'),
     }),
 
+    trackCoverArtistContributions: reverseContributionList({
+      data: 'trackData',
+      list: input.value('coverArtistContribs'),
+      mode: input.value('contributions'),
+    }),
+
     albumsAsAlbumArtist: reverseContributionList({
       data: 'albumData',
       list: input.value('artistContribs'),
@@ -231,6 +237,30 @@ export class Artist extends Thing {
       list: input.value('commentatorArtists'),
     }),
 
+    albumArtistContributions: reverseContributionList({
+      data: 'albumData',
+      list: input.value('artistContribs'),
+      mode: input.value('contributions'),
+    }),
+
+    albumCoverArtistContributions: reverseContributionList({
+      data: 'albumData',
+      list: input.value('coverArtistContribs'),
+      mode: input.value('contributions'),
+    }),
+
+    albumWallpaperArtistContributions: reverseContributionList({
+      data: 'albumData',
+      list: input.value('wallpaperArtistContribs'),
+      mode: input.value('contributions'),
+    }),
+
+    albumBannerArtistContributions: reverseContributionList({
+      data: 'albumData',
+      list: input.value('bannerArtistContribs'),
+      mode: input.value('contributions'),
+    }),
+
     flashesAsContributor: reverseContributionList({
       data: 'flashData',
       list: input.value('contributorContribs'),