« get me outta code hell

data: redate inherited contribution lists - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-03-07 12:20:50 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-06-12 17:26:41 -0300
commit2ecbfea7c451abb422db3b6c29b26825e1a824a4 (patch)
tree4492c875d5ed366c43ad4a486692951528015a37 /src/data/things
parent55df0a77ab929592cce98d36db71315c6c534aa2 (diff)
data: redate inherited contribution lists
Diffstat (limited to 'src/data/things')
-rw-r--r--src/data/things/track.js18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js
index 5410889f..2f916b1d 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -18,8 +18,6 @@ import {
 } from '#yaml';
 
 import {withPropertyFromObject} from '#composite/data';
-import {withRecontextualizedContributionList, withResolvedContribs}
-  from '#composite/wiki-data';
 
 import {
   exitWithoutDependency,
@@ -31,6 +29,12 @@ import {
 } from '#composite/control-flow';
 
 import {
+  withRecontextualizedContributionList,
+  withRedatedContributionList,
+  withResolvedContribs,
+} from '#composite/wiki-data';
+
+import {
   additionalFiles,
   additionalNameList,
   commentary,
@@ -217,6 +221,11 @@ export class Track extends Thing {
         list: '#album.artistContribs',
       }),
 
+      withRedatedContributionList({
+        list: '#album.artistContribs',
+        date: '#date',
+      }),
+
       exposeDependency({dependency: '#album.artistContribs'}),
     ],
 
@@ -261,6 +270,11 @@ export class Track extends Thing {
         list: '#album.trackCoverArtistContribs',
       }),
 
+      withRedatedContributionList({
+        list: '#album.trackCoverArtistContribs',
+        date: '#trackArtDate',
+      }),
+
       exposeDependency({dependency: '#album.trackCoverArtistContribs'}),
     ],