« get me outta code hell

data: artist: scope contribution properties to thing kind - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-04-10 20:26:32 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-18 22:56:05 -0300
commit151bb59cc02fd111452b0511da903be7d496c1da (patch)
tree660250a410d88ee49bac7c927f8d7280d69582fb
parentedf2f46d0778b9505258cde878742b816289d1f6 (diff)
data: artist: scope contribution properties to thing kind
-rw-r--r--src/content/dependencies/generateArtistInfoPageTracksChunkedList.js4
-rw-r--r--src/data/things/artist.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/content/dependencies/generateArtistInfoPageTracksChunkedList.js b/src/content/dependencies/generateArtistInfoPageTracksChunkedList.js
index 9eb4e952..7c01accb 100644
--- a/src/content/dependencies/generateArtistInfoPageTracksChunkedList.js
+++ b/src/content/dependencies/generateArtistInfoPageTracksChunkedList.js
@@ -12,8 +12,8 @@ export default {
     const query = {};
 
     const allContributions = [
-      ...artist.artistContributions,
-      ...artist.contributorContributions,
+      ...artist.trackArtistContributions,
+      ...artist.trackContributorContributions,
     ];
 
     sortContributionsChronologically(
diff --git a/src/data/things/artist.js b/src/data/things/artist.js
index 35abc397..0878edd5 100644
--- a/src/data/things/artist.js
+++ b/src/data/things/artist.js
@@ -142,13 +142,13 @@ export class Artist extends Thing {
       list: input.value('commentatorArtists'),
     }),
 
-    artistContributions: reverseContributionList({
+    trackArtistContributions: reverseContributionList({
       data: 'trackData',
       list: input.value('artistContribs'),
       mode: input.value('contributions'),
     }),
 
-    contributorContributions: reverseContributionList({
+    trackContributorContributions: reverseContributionList({
       data: 'trackData',
       list: input.value('contributorContribs'),
       mode: input.value('contributions'),